Commit c63d5863 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by sanglipeng
Browse files

f2fs: fix potential corruption when moving a directory

stable inclusion
from stable-v5.10.180
commit 957904f531fd857a92743b11fbc9c9ffdf7f3207
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=957904f531fd857a92743b11fbc9c9ffdf7f3207



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

commit d9477215 upstream.

F2FS has the same issue in ext4_rename causing crash revealed by
xfstests/generic/707.

See also commit 0813299c ("ext4: Fix possible corruption when moving a directory")

CC: stable@vger.kernel.org
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 22ffcb2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment