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:Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment