LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] PCI/AER: Improve Error Source handling
@ 2026-11-03  9:45 Lukas Wunner
  2026-11-03  9:45 ` [PATCH 1/2] PCI/AER: Avoid NULL pointer deref on search for Error Source Lukas Wunner
  2026-11-03  9:45 ` [PATCH 2/2] PCI/AER: Check validity of Error Source ID register Lukas Wunner
  0 siblings, 2 replies; 7+ messages in thread
From: Lukas Wunner @ 2026-11-03  9:45 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci
  Cc: Sourabh Jain, Oliver OHalloran, linuxppc-dev, Alex Deucher,
	Sathyanarayanan Kuppuswamy, Keith Busch, Maciej Grochowski

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-03 16:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03  9:45 [PATCH 0/2] PCI/AER: Improve Error Source handling Lukas Wunner
2026-11-03  9:45 ` [PATCH 1/2] PCI/AER: Avoid NULL pointer deref on search for Error Source Lukas Wunner
2026-11-03 12:39   ` Ilpo Järvinen
2026-11-03 16:08   ` Kuppuswamy Sathyanarayanan
2026-11-03  9:45 ` [PATCH 2/2] PCI/AER: Check validity of Error Source ID register Lukas Wunner
2026-11-03 12:57   ` Ilpo Järvinen
2026-11-03 16:15   ` Kuppuswamy Sathyanarayanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox