ext4: verify dir block before splitting it
authorJan Kara <jack@suse.cz>
Wed, 18 May 2022 09:33:28 +0000 (11:33 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 May 2022 19:34:08 +0000 (15:34 -0400)
commit46c116b920ebec58031f0a78c5ea9599b0d2a371
tree6e286d180b80b075316c94a179e0cbc52bf5a05b
parentc878bea3c9d724ddfa05a813f30de3d25a0ba83f
ext4: verify dir block before splitting it

Before splitting a directory block verify its directory entries are sane
so that the splitting code does not access memory it should not.

Cc: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220518093332.13986-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c