Re: [PATCH v2 0/7] pci: fix UAF and TOCTOU related to dynamic ID
From: Bjorn Helgaas
Date: Tue Jul 21 2026 - 20:08:48 EST
On Tue, Jul 21, 2026 at 05:30:47PM -0500, Bjorn Helgaas wrote:
> On Tue, Jun 30, 2026 at 12:09:00PM +0100, Gary Guo wrote:
> > While working on improving the Rust abstractions [1], Sashiko reported that
> > an existing UAF issue related to dynamic ID, which I find to be genuine.
> > When taking a look at the code I also find a TOCTOU issue where the
> > existence check of dynamic ID happens in a separate critical section as the
> > actual insertion. This series fix both issues.
> ...
> Run "git log --oneline drivers/pci" and match style (capitalize "PCI:"
> and first word of subject).
>
> At least in the PCI patch commit logs and comments, add "()" after
> function names.
>
> s/id/ID/ throughout (it's currently inconsistent).
> s/pci/PCI/ throughout (ditto)
Oops, sorry, I meant to reply to v3, not v2.