[PATCH] ext4: fix kernel BUG in ext4_writepages

9 views
Skip to first unread message

Tadeusz Struk

unread,
May 19, 2022, 6:51:23 PM5/19/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/inline.c b/fs/ext4/inline.c
index 9c076262770d..e4bbb53fa26f 100644
--- a/fs/ext4/inline.c
+++ b/fs/ext4/inline.c
@@ -715,6 +715,7 @@ int ext4_try_to_write_inline_data(struct address_space *mapping,
put_page(page);
goto out_up_read;
}
+ __xa_clear_mark(&mapping->i_pages, 0, PAGECACHE_TAG_DIRTY);
}

ret = 1;
--
2.36.1

Tadeusz Struk

unread,
May 19, 2022, 6:52:15 PM5/19/22
to syzbot+bd1364...@syzkaller.appspotmail.com, syzkaller-a...@googlegroups.com, tadeus...@linaro.org
#syz test: https://android.googlesource.com/kernel/common android12-5.10-lts

syzbot

unread,
May 19, 2022, 6:58:11 PM5/19/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

failed to create VM pool: failed to create GCE image: create image operation failed: &{Code:PERMISSIONS_ERROR Location: Message:Required 'read' permission for 'ci2-android-5-10-test-job-test-job-image.tar.gz' ForceSendFields:[] NullFields:[]}.


Tested on:

commit: b015dcd6 Merge tag 'for-5.18/parisc-4' of git://git.ke..
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
kernel config: https://syzkaller.appspot.com/x/.config?x=3105f4ccd2ac0c7f
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=1557ba89f00000

Tadeusz Struk

unread,
May 19, 2022, 7:01:43 PM5/19/22
to syzbot+bd1364...@syzkaller.appspotmail.com, syzkaller-a...@googlegroups.com, tadeus...@linaro.org

syzbot

unread,
May 19, 2022, 7:12:10 PM5/19/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: 0974b841 Merge 5.10.117 into android12-5.10-lts
git tree: android12-5.10-lts
kernel config: https://syzkaller.appspot.com/x/.config?x=89bdb361ba397fca
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=126a30d6f00000

Note: testing is done by a robot and is best-effort only.

syzbot

unread,
May 19, 2022, 7:26:14 PM5/19/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: b015dcd6 Merge tag 'for-5.18/parisc-4' of git://git.ke..
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
kernel config: https://syzkaller.appspot.com/x/.config?x=3105f4ccd2ac0c7f
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=1024dccef00000
Reply all
Reply to author
Forward
0 new messages