Commit c90b45cb authored by Jan Kara's avatar Jan Kara Committed by sanglipeng
Browse files

udf: Detect system inodes linked into directory hierarchy

stable inclusion
from stable-v5.10.173
commit a44ec34b90440ada190924f5908b97026504fdcd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a44ec34b90440ada190924f5908b97026504fdcd



--------------------------------

commit 85a37983 upstream.

When UDF filesystem is corrupted, hidden system inodes can be linked
into directory hierarchy which is an avenue for further serious
corruption of the filesystem and kernel confusion as noticed by syzbot
fuzzed images. Refuse to access system inodes linked into directory
hierarchy and vice versa.

CC: stable@vger.kernel.org
Reported-by: default avatar <syzbot+38695a20b8addcbc1084@syzkaller.appspotmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 47e1ceea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment