Commit a12320bd authored by Theodore Ts'o's avatar Theodore Ts'o Committed by sanglipeng
Browse files

ext4: bail out of ext4_xattr_ibody_get() fails for any reason

stable inclusion
from stable-v5.10.180
commit d88fe8e6112696238deeaf09820db183663eabca
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

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



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

commit 2a534e1d upstream.

In ext4_update_inline_data(), if ext4_xattr_ibody_get() fails for any
reason, it's best if we just fail as opposed to stumbling on,
especially if the failure is EFSCORRUPTED.

Cc: stable@kernel.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 506a4b2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment