linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* avoid null pointer rereference during FLR
@ 2017-05-23  5:42 Christoph Hellwig
  2017-05-23  5:42 ` [PATCH] PCI: ensure the PCI device is locked over ->reset_notify calls Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2017-05-23  5:42 UTC (permalink / raw)
  To: helgaas; +Cc: rakesh, linux-pci, linux-nvme

Hi all,

Rakesh reported a bug where a FLR can trivially crash his system.
The reason for that is that NVMe unbinds the driver from the PCI device
on an unrecoverable error, and that races with the reset_notify method.

This is fairly easily fixable by taking the device lock for a slightly
longer period.  Note that the other PCI error handling methods actually
have the same issue, but with them not taking the lock yet and me having
no good way to reproducibly call them I'm a little reluctant to touch
them, but it would be great if we could fix those issues as well.

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

end of thread, other threads:[~2017-06-01 10:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-23  5:42 avoid null pointer rereference during FLR Christoph Hellwig
2017-05-23  5:42 ` [PATCH] PCI: ensure the PCI device is locked over ->reset_notify calls Christoph Hellwig
2017-05-29  9:19   ` Rakesh Pandit
2017-05-30 22:28   ` Bjorn Helgaas
2017-05-31  4:58     ` Christoph Hellwig
2017-05-31 16:51       ` Bjorn Helgaas
2017-06-01 10:46         ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).