Commit 1625f1a6 authored by Daeho Jeong's avatar Daeho Jeong Committed by Daniel Rosenberg
Browse files

BACKPORT: f2fs: synchronize atomic write aborts



To fix a race condition between atomic write aborts, I use the inode
lock and make COW inode to be re-usable thoroughout the whole
atomic file inode lifetime.

Bug: 298879042
Reported-by: default avatar <syzbot+823000d23b3400619f7c@syzkaller.appspotmail.com>
Fixes: 3db1de0e ("f2fs: change the current atomic write way")
Change-Id: I50fce037ad57deded523d7226f17e8086f9d8c17
Signed-off-by: default avatarDaeho Jeong <daehojeong@google.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit fbff945c)
Signed-off-by: default avatarzhoudan8 <zhoudan8@xiaomi.com>
parent 4f593369
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment