]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: validate the debug_want_extra_isize mount option at parse time
authorTheodore Ts'o <tytso@mit.edu>
Sun, 15 Dec 2019 06:09:03 +0000 (01:09 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 15 Dec 2019 23:05:20 +0000 (18:05 -0500)
commite7872c4f8a1e8cd72187af5f75b0b1395ed695ee
tree7074d366004eb513473463ea2e11b5d348ef284a
parent87b637d4890c58e5b4b58452a2f3a0771a05534a
ext4: validate the debug_want_extra_isize mount option at parse time

Instead of setting s_want_extra_size and then making sure that it is a
valid value afterwards, validate the field before we set it.  This
avoids races and other problems when remounting the file system.

Link: https://lore.kernel.org/r/20191215063020.GA11512@mit.edu
Cc: stable@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-and-tested-by: syzbot+4a39a025912b265cacef@syzkaller.appspotmail.com
fs/ext4/super.c