[PATCH] ext4: attempt to convert inline data before BUG

0 views
Skip to first unread message

Tadeusz Struk

unread,
Jul 25, 2022, 9:22:36 PM7/25/22
to syzbot+bd1364...@syzkaller.appspotmail.com, syzkaller-a...@googlegroups.com, tadeus...@linaro.org
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 84c0eb55071d..ce3ca5088324 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2717,6 +2717,7 @@ static int ext4_writepages(struct address_space *mapping,
ret = PTR_ERR(handle);
goto out_writepages;
}
+ BUG_ON(ext4_convert_inline_data(inode));
BUG_ON(ext4_test_inode_state(inode,
EXT4_STATE_MAY_INLINE_DATA));
ext4_destroy_inline_data(handle, inode);
--
2.37.1

syzbot

unread,
Jul 25, 2022, 9:41:17 PM7/25/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+bd1364...@syzkaller.appspotmail.com

Tested on:

commit: e0dccc3b Linux 5.19-rc8
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=15d9807a080000
kernel config: https://syzkaller.appspot.com/x/.config?x=f055e0e2a1e05c92
dashboard link: https://syzkaller.appspot.com/bug?extid=bd13648a53ed6933ca49
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=1520587a080000

Note: testing is done by a robot and is best-effort only.
Reply all
Reply to author
Forward
0 new messages