lei lu edb2e67dd4 ocfs2: add bounds checking to ocfs2_check_dir_entry()
commit 255547c6bb8940a97eea94ef9d464ea5967763fb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-27 11:40:32 +02:00
..
2023-01-19 09:24:27 +01:00
2024-02-22 15:38:51 -08:00
2024-04-25 21:07:04 -07:00
2022-07-29 18:12:36 -07:00
2024-04-25 21:07:04 -07:00
2023-08-02 09:13:09 -06:00
2024-04-25 21:07:04 -07:00
2018-12-28 12:11:45 -08:00
2024-04-25 21:07:04 -07:00
2022-05-09 16:21:46 -04:00
2023-10-30 09:47:13 -10:00