summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorNitesh Shetty <nj.shetty@samsung.com>2023-11-28 13:29:57 +0100
committerKeith Busch <kbusch@kernel.org>2023-12-04 17:39:04 +0100
commit20dc66f2d76b4a410df14e4675e373b718babc34 (patch)
treefb202350852461c940b808826d70c53d6f8e3903 /drivers/nvme/host/nvme.h
parentnvme: improve NVME_HOST_AUTH and NVME_TARGET_AUTH config descriptions (diff)
downloadlinux-20dc66f2d76b4a410df14e4675e373b718babc34.tar.xz
linux-20dc66f2d76b4a410df14e4675e373b718babc34.zip
nvme: prevent potential spectre v1 gadget
This patch fixes the smatch warning, "nvmet_ns_ana_grpid_store() warn: potential spectre issue 'nvmet_ana_group_enabled' [w] (local cap)" Prevent the contents of kernel memory from being leaked to user space via speculative execution by using array_index_nospec. Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
0 files changed, 0 insertions, 0 deletions