syzbot


kernel BUG in end_page_writeback

Status: upstream: reported C repro on 2023/02/06 23:18
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+ff728271f547ffe48a77@syzkaller.appspotmail.com
First crash: 653d, last: 26d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in end_page_writeback origin:lts-only C done 6 564d 614d 3/3 fixed on 2023/06/07 17:22
linux-4.14 kernel BUG in end_page_writeback nilfs2 C 1 628d 691d 0/1 upstream: reported C repro on 2022/12/30 20:15
android-5-10 kernel BUG in end_page_writeback f2fs C error inconclusive 3 602d 653d 2/2 fixed on 2023/06/30 00:53
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/10/25 19:38 19m retest repro android12-5.4 report log
2024/10/25 19:38 11m retest repro android12-5.4 report log
2024/08/16 00:20 9m retest repro android12-5.4 report log
2024/08/16 00:20 9m retest repro android12-5.4 report log
2024/06/06 23:47 12m retest repro android12-5.4 report log
2024/06/06 23:47 8m retest repro android12-5.4 report log
2024/03/28 22:47 6m retest repro android12-5.4 report log
2024/03/28 22:47 5m retest repro android12-5.4 report log
2024/01/18 22:02 5m retest repro android12-5.4 error
2024/01/18 22:02 5m retest repro android12-5.4 report log

Sample crash report:
------------[ cut here ]------------
kernel BUG at mm/filemap.c:1359!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 361 Comm: kworker/u4:5 Not tainted 5.4.225-syzkaller-00003-gf4e4be09c27c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: writeback wb_workfn (flush-7:3)
RIP: 0010:end_page_writeback+0x18c/0x190 mm/filemap.c:1359
Code: 5d 41 5e 41 5f 5d e9 b3 fa ff ff e8 3e a1 e5 ff 48 ff cb e9 dd fe ff ff e8 31 a1 e5 ff 48 ff cb e9 46 ff ff ff e8 24 a1 e5 ff <0f> 0b 66 90 55 41 57 41 56 41 54 53 89 d5 89 f3 49 89 fe e8 0c a1
RSP: 0018:ffff8881d47c6868 EFLAGS: 00010293
RAX: ffffffff817d95dc RBX: 0000000000000000 RCX: ffff8881d47bde80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff817d954a R09: fffff94000f66f01
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffffd4000f66f01 R14: ffffea0007b37808 R15: ffffea0007b37800
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002006a1ff CR3: 00000001dd7f1000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 f2fs_write_end_io+0x6a8/0xa60 fs/f2fs/data.c:341
 generic_make_request_checks+0x2fd/0x18c0 block/blk-core.c:989
 generic_make_request+0xe0/0xc90 block/blk-core.c:1029
 submit_bio+0x143/0x650 block/blk-core.c:1203
 f2fs_submit_merged_ipu_write+0x472/0x4f0 fs/f2fs/data.c:857
 f2fs_write_single_data_page+0x13ae/0x19c0 fs/f2fs/data.c:2872
 f2fs_write_cache_pages fs/f2fs/data.c:3083 [inline]
 __f2fs_write_data_pages fs/f2fs/data.c:3234 [inline]
 f2fs_write_data_pages+0x1665/0x2c20 fs/f2fs/data.c:3261
 do_writepages+0x12b/0x270 mm/page-writeback.c:2344
 __writeback_single_inode+0xd9/0xcc0 fs/fs-writeback.c:1467
 writeback_sb_inodes+0xa2c/0x1990 fs/fs-writeback.c:1730
 wb_writeback+0x403/0xd70 fs/fs-writeback.c:1905
 wb_do_writeback fs/fs-writeback.c:2050 [inline]
 wb_workfn+0x3a9/0x10c0 fs/fs-writeback.c:2091
 process_one_work+0x765/0xd20 kernel/workqueue.c:2287
 worker_thread+0xaef/0x1470 kernel/workqueue.c:2433
 kthread+0x2da/0x360 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354
Modules linked in:
---[ end trace acecca8406d4a201 ]---
RIP: 0010:end_page_writeback+0x18c/0x190 mm/filemap.c:1359
Code: 5d 41 5e 41 5f 5d e9 b3 fa ff ff e8 3e a1 e5 ff 48 ff cb e9 dd fe ff ff e8 31 a1 e5 ff 48 ff cb e9 46 ff ff ff e8 24 a1 e5 ff <0f> 0b 66 90 55 41 57 41 56 41 54 53 89 d5 89 f3 49 89 fe e8 0c a1
RSP: 0018:ffff8881d47c6868 EFLAGS: 00010293
RAX: ffffffff817d95dc RBX: 0000000000000000 RCX: ffff8881d47bde80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff817d954a R09: fffff94000f66f01
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffffd4000f66f01 R14: ffffea0007b37808 R15: ffffea0007b37800
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002006a1ff CR3: 00000001dd7f1000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/18 16:09 android12-5.4 f4e4be09c27c 7939252e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in end_page_writeback
2023/02/06 23:46 android12-5.4 6a5ec6cea0cd 0a9c11b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in end_page_writeback
2024/05/11 09:35 android12-5.4 51cf29fc2bfc 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in end_page_writeback
2024/05/02 00:40 android12-5.4 2d5d8240a7cb 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in end_page_writeback
2023/04/12 10:46 android12-5.4 21086923c1e6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in end_page_writeback
2023/04/09 12:26 android12-5.4 21086923c1e6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in end_page_writeback
2023/02/22 14:40 android12-5.4 66c3e3ab77a2 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in end_page_writeback
2023/02/06 23:18 android12-5.4 6a5ec6cea0cd 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in end_page_writeback
* Struck through repros no longer work on HEAD.