Re: [syzbot] [f2fs?] kernel BUG in f2fs_write_inline_data
From: Hillf Danton
Date: Sun Jun 02 2024 - 07:49:36 EST
On Sat, 01 Jun 2024 04:50:27 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 0e1980c40b6e Add linux-next specific files for 20240531
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14d86426980000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
--- x/fs/f2fs/data.c
+++ y/fs/f2fs/data.c
@@ -2854,7 +2854,7 @@ write:
set_inode_flag(inode, FI_HOT_DATA);
err = -EAGAIN;
- if (f2fs_has_inline_data(inode)) {
+ if (f2fs_has_inline_data(inode) && !page->index) {
err = f2fs_write_inline_data(inode, page);
if (!err)
goto out;
--