linux/drivers/nvme/target
Max Gurtovoy d9f273b758 nvmet: model_number must be immutable once set
In case we have already established connection to nvmf target, it
shouldn't be allowed to change the model_number. E.g. if someone will
identify ctrl and get model_number of "my_model" later on will change
the model_numbel via configfs to "my_new_model" this will break the NVMe
specification for "Get Log Page – Persistent Event Log" that refers to
Model Number as: "This field contains the same value as reported in the
Model Number field of the Identify Controller data structure, bytes
63:24."

Although it doesn't mentioned explicitly that this field can't be
changed, we can assume it.

So allow setting this field only once: using configfs or in the first
identify ctrl operation.

Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-03-05 13:41:03 +01:00
..
admin-cmd.c nvmet: model_number must be immutable once set 2021-03-05 13:41:03 +01:00
configfs.c nvmet: model_number must be immutable once set 2021-03-05 13:41:03 +01:00
core.c nvmet: model_number must be immutable once set 2021-03-05 13:41:03 +01:00
discovery.c nvmet: make sure discovery change log event is protected 2020-12-01 20:36:37 +01:00
fabrics-cmd.c nvmet: add metadata/T10-PI support 2020-05-27 07:12:40 +02:00
fc.c nvmet-fc: add a missing __rcu annotation to nvmet_fc_tgt_assoc.queues 2021-02-10 16:38:04 +01:00
fcloop.c nvme: constify static attribute_group structs 2021-02-02 10:26:10 +01:00
io-cmd-bdev.c block: Add bio_max_segs 2021-02-26 15:49:51 -07:00
io-cmd-file.c nvmet: use invalid cmd opcode helper 2021-02-10 16:38:05 +01:00
Kconfig nvmet: fix a spelling mistake "incuding" -> "including" in Kconfig 2020-12-01 20:36:37 +01:00
loop.c for-5.11/drivers-2020-12-14 2020-12-16 13:09:32 -08:00
Makefile nvmet: add passthru code to process commands 2020-07-29 07:45:21 +02:00
nvmet.h nvmet: model_number must be immutable once set 2021-03-05 13:41:03 +01:00
passthru.c block: Add bio_max_segs 2021-02-26 15:49:51 -07:00
rdma.c nvmet-rdma: Fix NULL deref when setting pi_enable and traddr INADDR_ANY 2021-01-14 20:27:34 +01:00
tcp.c for-5.12/drivers-2021-02-17 2021-02-21 11:06:54 -08:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: use min of device_path and disk len 2021-02-10 16:38:05 +01:00