Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nvme: validate CNTLID
@ 2019-04-03 22:41 Hannes Reinecke
  2019-04-03 22:41 ` [PATCH 1/2] nvme-multipath: avoid crash on invalid subsystem cntlid enumeration Hannes Reinecke
  2019-04-03 22:41 ` [PATCH 2/2] nvme: validate cntlid during controller initialisation Hannes Reinecke
  0 siblings, 2 replies; 12+ messages in thread
From: Hannes Reinecke @ 2019-04-03 22:41 UTC (permalink / raw)


Hi all,

here are two patches to validate correct CNTLID information.
A controller might violate the constrain the each CNTLID has to
be unique within a subsystem, which then would cause the host
to crash.
So these patches prevent this situation by validate the CNTLID
and not use the cntlid as part of the device name.

As usual, comments and reviews are welcome.

Hannes Reinecke (2):
  nvme-multipath: avoid crash on invalid subsystem cntlid enumeration
  nvme: validate cntlid during controller initialisation

 drivers/nvme/host/core.c      | 16 +++++++++++++++-
 drivers/nvme/host/multipath.c |  2 +-
 2 files changed, 16 insertions(+), 2 deletions(-)

-- 
2.16.4

^ permalink raw reply	[flat|nested] 12+ messages in thread
* detect duplicate cntlids v2
@ 2019-05-13  6:25 Christoph Hellwig
  2019-05-13  6:25 ` [PATCH 2/2] nvme: validate cntlid during controller initialisation Christoph Hellwig
  0 siblings, 1 reply; 12+ messages in thread
From: Christoph Hellwig @ 2019-05-13  6:25 UTC (permalink / raw)


Hi all,

this series detects duplicate cntlids in a subsystems.  It is
based on a patch from Hannes.

Changes since v1:
 - add a lockdep check for a held lock
 - improve printk format

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

end of thread, other threads:[~2019-08-30 18:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-03 22:41 [PATCH 0/2] nvme: validate CNTLID Hannes Reinecke
2019-04-03 22:41 ` [PATCH 1/2] nvme-multipath: avoid crash on invalid subsystem cntlid enumeration Hannes Reinecke
2019-05-03 11:04   ` Hannes Reinecke
2019-05-03 11:31     ` Christoph Hellwig
2019-04-03 22:41 ` [PATCH 2/2] nvme: validate cntlid during controller initialisation Hannes Reinecke
2019-04-04  5:26   ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2019-05-13  6:25 detect duplicate cntlids v2 Christoph Hellwig
2019-05-13  6:25 ` [PATCH 2/2] nvme: validate cntlid during controller initialisation Christoph Hellwig
2019-05-13  6:36   ` Hannes Reinecke
2019-05-13 15:16   ` Chaitanya Kulkarni
2019-05-13 18:25   ` Heitke, Kenneth
2019-08-30 18:24   ` James Smart
2019-08-30 18:30     ` Sagi Grimberg

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