summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2022-07-06 10:05:05 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-22 10:21:55 +0200
commit3d8b35387e01cab217dc4691a6f770cbb6ed852c (patch)
treeea34dc6a928b9f742ad363d9438d270ad3c28dbf /include
parent97f9cba7686e395669ffb2808c4a7b140bfdb5bb (diff)
downloadlinux-3d8b35387e01cab217dc4691a6f770cbb6ed852c.tar.gz
linux-3d8b35387e01cab217dc4691a6f770cbb6ed852c.tar.bz2
linux-3d8b35387e01cab217dc4691a6f770cbb6ed852c.zip
nvme: use struct group for generic command dwords
[ Upstream commit 5c629dc9609dc43492a7bc8060cc6120875bf096 ] This will allow the trace event to know the full size of the data intended to be copied and silence read overflow checks. Reported-by: John Garry <john.garry@huawei.com> Suggested-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvme.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index f626a445d1a8..99b1b56f0cd3 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -867,12 +867,14 @@ struct nvme_common_command {
__le32 cdw2[2];
__le64 metadata;
union nvme_data_ptr dptr;
+ struct_group(cdws,
__le32 cdw10;
__le32 cdw11;
__le32 cdw12;
__le32 cdw13;
__le32 cdw14;
__le32 cdw15;
+ );
};
struct nvme_rw_command {