]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: Annotate struct nvme_dhchap_key with __counted_by
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 3 Mar 2026 21:31:01 +0000 (22:31 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 10 Mar 2026 15:20:29 +0000 (08:20 -0700)
commitfa655a9ca73f7df32b8ca4d14ce11742f9578288
treec41a10b87d1870a2d82bb2490c82cf20953ed132
parent0375c81eb2256366cd9602441d48b8b937e79635
nvme: Annotate struct nvme_dhchap_key with __counted_by

Add the __counted_by() compiler attribute to the flexible array member
'key' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Keith Busch <kbusch@kernel.org>
include/linux/nvme-auth.h