]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: add more paranoia checking in ext4_expand_extra_isize handling
authorTheodore Ts'o <tytso@mit.edu>
Fri, 8 Nov 2019 02:43:41 +0000 (21:43 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 19 Nov 2019 17:24:55 +0000 (12:24 -0500)
commit86937c676f7d2e31d5256bdba9fca0f3ea808bc7
treef8c0a5dedc0cf0cfe1671e665cc7a65fdde13a05
parent986a21687d0d754a476a2c65b8de96e6cc6a9305
ext4: add more paranoia checking in ext4_expand_extra_isize handling

It's possible to specify a non-zero s_want_extra_isize via debugging
option, and this can cause bad things(tm) to happen when using a file
system with an inode size of 128 bytes.

Add better checking when the file system is mounted, as well as when
we are actually doing the trying to do the inode expansion.

Link: https://lore.kernel.org/r/20191110121510.GH23325@mit.edu
Reported-by: syzbot+f8d6f8386ceacdbfff57@syzkaller.appspotmail.com
Reported-by: syzbot+33d7ea72e47de3bdf4e1@syzkaller.appspotmail.com
Reported-by: syzbot+44b6763edfc17144296f@syzkaller.appspotmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/inode.c
fs/ext4/super.c