]> git.baikalelectronics.ru Git - kernel.git/commit
fs/cramfs/inode.c: initialize file_ra_state
authorAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Feb 2023 20:31:11 +0000 (12:31 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:09 +0000 (09:34 +0100)
commit1eec60fcf9fb09d5f3e7a88e0e69368c3ea11557
tree916f6fa3e1959fdb9f9b5e322a6065de319adf6a
parent8b90f1d9544bcfbc8683f0632387fad17c02f749
fs/cramfs/inode.c: initialize file_ra_state

commit 801d05d96032524552ed868ef8f8030b039a5be5 upstream.

file_ra_state_init() assumes that the file_ra_state has been zeroed out.
Fixes a KMSAN used-unintialized issue (at least).

Fixes: 3cf82b1c64e2c ("cramfs: read_mapping_page() is synchronous")
Reported-by: syzbot <syzbot+8ce7f8308d91e6b8bbe2@syzkaller.appspotmail.com>
Link: https://lkml.kernel.org/r/0000000000008f74e905f56df987@google.com
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cramfs/inode.c