aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/mcdi_functions.h
diff options
context:
space:
mode:
authorShigeru Yoshida <[email protected]>2023-08-21 04:33:12 +0000
committerChristian Brauner <[email protected]>2023-09-11 12:07:46 +0000
commit2251588143f65636cf3f3f12beb009084fa2d5d7 (patch)
tree249a96e65c91f23628871bfeaab5c3a1e13d310f /drivers/cdx/controller/mcdi_functions.h
parentLinux 6.6-rc1 (diff)
downloadkernel-2251588143f65636cf3f3f12beb009084fa2d5d7.tar.gz
kernel-2251588143f65636cf3f3f12beb009084fa2d5d7.zip
reiserfs: Replace 1-element array with C99 style flex-array
UBSAN found the following issue: ================================================================================ UBSAN: array-index-out-of-bounds in fs/reiserfs/journal.c:4166:22 index 1 is out of range for type '__le32 [1]' This is because struct reiserfs_journal_desc uses 1-element array for dynamically sized array member, j_realblock. This patch fixes this issue by replacing the 1-element array member with C99 style flex-array. This patch also fixes the same issue in struct reiserfs_journal_commit as the same manner. Fixes: f466c6fdb3b1 ("move private bits of reiserfs_fs.h to fs/reiserfs/reiserfs.h") Signed-off-by: Shigeru Yoshida <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/mcdi_functions.h')
0 files changed, 0 insertions, 0 deletions