summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-07-23 23:00:47 +0100
committerBjorn Helgaas <bhelgaas@google.com>2026-07-28 11:20:10 -0500
commit04fde70f782b6ce984f9f80c2023786caea28287 (patch)
tree53c2279359b35ca6ace8077e71221f8bd8b9750b /scripts/Makefile.thinlto
parentc967b365d7b51c2297d9be5df39ac3e20638faf4 (diff)
downloadlinux-stable-04fde70f782b6ce984f9f80c2023786caea28287.tar.gz
linux-stable-04fde70f782b6ce984f9f80c2023786caea28287.zip
PCI: Fix dyn_id add TOCTOU
Currently there is a TOCTOU issue in new_id_store() as the dyn ID insertion in pci_add_dynid() and the pci_match_device() are in separate critical sections. Fix this by moving the existing ID check to inside pci_add_dynid() and only check against the static ID table outside the critical section. Fixes: 3853f9123c18 ("PCI: Avoid duplicate IDs in driver dynamic IDs list") Signed-off-by: Gary Guo <gary@garyguo.net> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260723-pci_id_fix-v4-8-3580726844e1@garyguo.net
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions