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)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Mar 2023 05:54:23 +0000 (21:54 -0800)
commit3e35102666f873a135d31a726ac1ec8af4905206
tree5cc7a3e85aa9f517ae57710b438306a7178a38fd
parent07db5e247ab5858439b14dd7cc1fe538b9efcf32
fs/cramfs/inode.c: initialize file_ra_state

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

Fixes: cf948cbc35e80 ("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>
fs/cramfs/inode.c