]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:23:09 +0000 (14:23 -0300)
commit9d58c5dfd206af61d1907c3df648ca4aa9e3b63d
treeaa996eb333172da91077824c3dffaa6b635d519d
parent3b21b6b2129d5adf1e60b80db1008307efff435f
ext4: add more paranoia checking in ext4_expand_extra_isize handling

BugLink: https://bugs.launchpad.net/bugs/1855306
commit 4ea99936a1630f51fc3a2d61a58ec4a1c4b7d55a upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/ext4/inode.c
fs/ext4/super.c