linux/drivers/nvme/host
Christoph Hellwig b9621ce759 nvme: don't reject probe due to duplicate IDs for single-ported PCIe devices
commit ac522fc6c3 upstream.

While duplicate IDs are still very harmful, including the potential to easily
see changing devices in /dev/disk/by-id, it turn out they are extremely
common for cheap end user NVMe devices.

Relax our check for them for so that it doesn't reject the probe on
single-ported PCIe devices, but prints a big warning instead.  In doubt
we'd still like to see quirk entries to disable the potential for
changing supposed stable device identifier links, but this will at least
allow users how have two (or more) of these devices to use them without
having to manually add a new PCI ID entry with the quirk through sysfs or
by patching the kernel.

Fixes: 2079f41ec6 ("nvme: check that EUI/GUID/UUID are globally unique")
Cc: stable@vger.kernel.org # 6.0+
Co-developed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-07-23 13:54:09 +02:00
..
apple.c nvme-apple: return directly instead of else 2023-04-13 08:55:06 +02:00
auth.c block-6.3-2023-03-03 2023-03-03 10:21:39 -08:00
constants.c nvme: fix the name of Zone Append for verbose logging 2023-05-31 09:21:26 -07:00
core.c nvme: don't reject probe due to duplicate IDs for single-ported PCIe devices 2023-07-23 13:54:09 +02:00
fabrics.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
fabrics.h nvme-fabrics: show well known discovery name 2023-02-28 06:14:44 -07:00
fault_inject.c block: remove the ->rq_disk field in struct request 2021-11-29 06:41:29 -07:00
fc.c drivers: remove struct module * setting from struct class 2023-03-17 15:16:27 +01:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-pci: add quirk for missing secondary temperature thresholds 2023-05-03 18:11:43 +02:00
ioctl.c nvme: fix miss command type check 2023-05-30 08:50:24 -07:00
Kconfig nvme-auth: Diffie-Hellman key exchange support 2022-08-02 17:14:49 -06:00
Makefile nvme: don't always build constants.o 2022-08-02 17:22:48 -06:00
multipath.c Merge tag 'nvme-6.4-2023-05-18' of git://git.infradead.org/nvme into block-6.4 2023-05-18 19:46:42 -06:00
nvme.h nvme: check IO start time when deciding to defer KA 2023-05-30 09:20:47 -07:00
pci.c nvme-pci: fix DMA direction of unmapping integrity data 2023-07-23 13:53:50 +02:00
rdma.c blk-mq-rdma: remove queue mapping helper for rdma devices 2023-04-13 08:59:05 +02:00
tcp.c for-6.4/block-2023-04-21 2023-04-26 12:52:58 -07:00
trace.c nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
trace.h nvme: fix async event trace event 2023-04-13 08:59:04 +02:00
zns.c block: pass a gendisk to blk_queue_max_open_zones and blk_queue_max_active_zones 2022-07-06 06:46:26 -06:00