[PATCH 0/2] PCI/AER: Improve Error Source handling

From
Lukas Wunner <lukas@wunner.de>
Date
2026-11-03 09:45:08
Also in
linux-pci
While analyzing log output provided by Alex, I noticed that the AER driver
fails to find the error-signaling device if the Error Source ID register
contains an invalid, non-zero value.  Patch [2/2] fixes that.

Also, a potential NULL pointer deref caught my eye in that portion of the
code which is fixed by patch [1/2].  I believe this is hard to trigger,
but the kernel should still handle it gracefully.

Lukas Wunner (2):
  PCI/AER: Avoid NULL pointer deref on search for Error Source
  PCI/AER: Check validity of Error Source ID register

 drivers/pci/pci.h       |  7 ++++++-
 drivers/pci/pcie/aer.c  | 35 ++++++++++++++++++++++++++---------
 drivers/pci/pcie/rcec.c | 14 ++++++++++++++
 3 files changed, 46 insertions(+), 10 deletions(-)

-- 
2.53.0

Thread (9 messages) 9 messages, 4 authors, last reply 7d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help