Commit e1991ca0 authored by Jun Nie's avatar Jun Nie Committed by sanglipeng
Browse files

ext4: refuse to create ea block when umounted

stable inclusion
from stable-v5.10.173
commit 0dc0fa313bb4e86382a3e7125429710d44383196
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=0dc0fa313bb4e86382a3e7125429710d44383196



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

commit f31173c1 upstream.

The ea block expansion need to access s_root while it is
already set as NULL when umount is triggered. Refuse this
request to avoid panic.

Reported-by: default avatar <syzbot+2dacb8f015bf1420155f@syzkaller.appspotmail.com>
Link: https://syzkaller.appspot.com/bug?id=3613786cb88c93aa1c6a279b1df6a7b201347d08
Link: https://lore.kernel.org/r/20230103014517.495275-3-jun.nie@linaro.org


Cc: stable@kernel.org
Signed-off-by: default avatarJun Nie <jun.nie@linaro.org>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent cf9a3854
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment