Re: [f2fs-dev] [PATCH] f2fs: synchronize atomic write aborts

From: Chao Yu
Date: Mon Feb 13 2023 - 20:47:35 EST


On 2023/2/10 2:18, Daeho Jeong wrote:
From: Daeho Jeong <daehojeong@xxxxxxxxxx>

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.

Reported-by: syzbot+823000d23b3400619f7c@xxxxxxxxxxxxxxxxxxxxxxxxx
Fixes: 3db1de0e582c ("f2fs: change the current atomic write way")
Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,