diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2020-03-06 07:28:36 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-03-06 14:06:09 +0100 |
commit | bc87302a093f0eab45cd4e250c2021299f712ec6 (patch) | |
tree | 87bc38f2bc3151bb3f53756a61904244ef1bb497 /mm | |
parent | mm: avoid data corruption on CoW fault into PFN-mapped VMA (diff) | |
download | linux-bc87302a093f0eab45cd4e250c2021299f712ec6.tar.xz linux-bc87302a093f0eab45cd4e250c2021299f712ec6.zip |
fat: fix uninit-memory access for partial initialized inode
When get an error in the middle of reading an inode, some fields in the
inode might be still not initialized. And then the evict_inode path may
access those fields via iput().
To fix, this makes sure that inode fields are initialized.
Reported-by: syzbot+9d82b8de2992579da5d0@syzkaller.appspotmail.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: <stable@vger.kernel.org>
Link: http://lkml.kernel.org/r/871rqnreqx.fsf@mail.parknet.co.jp
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions