Re: [PATCH v3 9/9] pci: fix UAF when probe runs concurrent to dyn ID removal

[email protected] Tue, 07 Jul 2026 14:12:20 +0000
Newsgroups gmane.linux.scsi,gmane.linux.ide,gmane.linux.kernel.pci,gmane.comp.video.dri.devel
Message-ID <[email protected]>
> Dynamic IDs are only guaranteed to be valid when dynids.lock is held,
> as remove_id_store can free the node. Thus, make a copy in
> pci_match_device. Also, clarify that the id parameter is only valid during
> probe.
> 
> Reported-by: Sashiko <[email protected]>
> Link: https://lore.kernel.org/all/[email protected]/
> Fixes: 0994375e9614 ("PCI: add remove_id sysfs entry")
> Signed-off-by: Gary Guo <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=9