]> git.itanic.dy.fi Git - linux-stable/commit
ext4: bail out of ext4_xattr_ibody_get() fails for any reason
authorTheodore Ts'o <tytso@mit.edu>
Fri, 12 May 2023 19:16:27 +0000 (15:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 11:59:11 +0000 (13:59 +0200)
commit30c45dfe0896e256d2d07edf702b4e490475d100
treed2a8bb668f4c3613ae89f27a61cf70b330cd76b9
parente780058bd75614b66882bc02620ddbd884171560
ext4: bail out of ext4_xattr_ibody_get() fails for any reason

commit 2a534e1d0d1591e951f9ece2fb460b2ff92edabd 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: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inline.c