]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06da1894098aadad7ea604371163c49e1e87cfb2
tree6e286d180b80b075316c94a179e0cbc52bf5a05b
parent9d05e0227bf9dfe62ea9ab49ccdd6706f5e369e6
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