summaryrefslogtreecommitdiffstats
path: root/include/uapi/asm-generic/kvm_para.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2023-06-14 11:13:11 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-15 11:43:29 +0200
commit09b69dd4378b91b3ac3fbac387fb992dc21c0f88 (patch)
treebc76d9055ad66a8ebeed64e622716e93ad40c692 /include/uapi/asm-generic/kvm_para.h
parentdf49f2a0ac4a34c0cb4b5c233fcfa0add644c43c (diff)
downloadlinux-stable-09b69dd4378b91b3ac3fbac387fb992dc21c0f88.tar.gz
linux-stable-09b69dd4378b91b3ac3fbac387fb992dc21c0f88.tar.bz2
linux-stable-09b69dd4378b91b3ac3fbac387fb992dc21c0f88.zip
usb: ch9: Replace 1-element array with flexible array
Since commit df8fc4e934c1 ("kbuild: Enable -fstrict-flex-arrays=3"), UBSAN_BOUNDS no longer pretends 1-element arrays are unbounded. Walking wData will trigger a warning, so make it a proper flexible array. Add a union to keep the struct size identical for userspace in case anything was depending on the old size. Reported-by: kernel test robot <oliver.sang@intel.com> Closes: https://lore.kernel.org/oe-lkp/202306102333.8f5a7443-oliver.sang@intel.com Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: kernel test robot <lkp@intel.com> Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org> Cc: Dan Williams <dan.j.williams@intel.com> Cc: "Jó Ágila Bitsch" <jgilab@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Message-ID: <20230614181307.gonna.256-kees@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/asm-generic/kvm_para.h')
0 files changed, 0 insertions, 0 deletions