]> git.itanic.dy.fi Git - linux-stable/commit
f2fs: fix potential corruption when moving a directory
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 6 Apr 2023 18:18:48 +0000 (11:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:50:25 +0000 (11:50 +0200)
commit8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9
tree81ff8d75c375840a2f2b34d9c5aa4a7ed5400381
parente2d1cc82ad509c07a9ab0ab4bf88b6613fbf784b
f2fs: fix potential corruption when moving a directory

commit d94772154e524b329a168678836745d2773a6e02 upstream.

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

See also commit 0813299c586b ("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>
fs/f2fs/namei.c