]> git.hungrycats.org Git - linux/commit
ocfs2: add bounds checking to ocfs2_check_dir_entry()
authorlei lu <llfamsec@gmail.com>
Wed, 26 Jun 2024 10:44:33 +0000 (18:44 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 5 Jul 2024 06:43:10 +0000 (23:43 -0700)
commit255547c6bb8940a97eea94ef9d464ea5967763fb
treed8f1887fb3e9ea973a0c7a3232d06ff4cbf72e5f
parent937b2972ce900fcfad87c13432e36f39da06a0df
ocfs2: add bounds checking to ocfs2_check_dir_entry()

This adds sanity checks for ocfs2_dir_entry to make sure all members of
ocfs2_dir_entry don't stray beyond valid memory region.

Link: https://lkml.kernel.org/r/20240626104433.163270-1-llfamsec@gmail.com
Signed-off-by: lei lu <llfamsec@gmail.com>
Reviewed-by: Heming Zhao <heming.zhao@suse.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/dir.c