syzbot


kernel BUG in ext4_do_writepages

Status: upstream: reported C repro on 2025/07/07 19:42
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+203932ca69a3bb6e336e@syzkaller.appspotmail.com
First crash: 131d, last: 5d07h
Bug presence (1)
Date Name Commit Repro Result
2025/07/07 upstream (ToT) d7b8f8e20813 C [report] kernel BUG in ext4_do_writepages
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ext4_do_writepages ext4 -1 C error 2835 2d22h 1064d 0/29 upstream: reported C repro on 2022/12/17 20:23
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/08/09 23:46 2h34m bisect fix linux-6.6.y OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2603!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 745 Comm: kworker/u4:5 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: writeback wb_workfn (flush-7:1)
RIP: 0010:ext4_do_writepages+0x38cd/0x38d0 fs/ext4/inode.c:2602
Code: c1 03 38 c1 0f 8c 7a fd ff ff 4c 89 e7 e8 db b7 ac ff e9 6d fd ff ff e8 a1 5c 55 ff 0f 0b e8 9a 5c 55 ff 0f 0b e8 93 5c 55 ff <0f> 0b 90 66 0f 1f 00 55 41 57 41 56 41 54 53 48 89 fb 49 bf 00 00
RSP: 0018:ffffc90003796ec0 EFLAGS: 00010293
RAX: ffffffff823032fd RBX: 0000004210000000 RCX: ffff888020ce8000
RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000
RBP: ffffc90003797230 R08: ffff888071f1c657 R09: 1ffff1100e3e38ca
R10: dffffc0000000000 R11: ffffed100e3e38cb R12: 0000000000000001
R13: ffff888071f1c8b0 R14: 0000004000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc7018dfa8 CR3: 000000005bd27000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 ext4_writepages+0x1a8/0x2f0 fs/ext4/inode.c:2807
 do_writepages+0x3a2/0x600 mm/page-writeback.c:2575
 __writeback_single_inode+0x153/0xee0 fs/fs-writeback.c:1635
 writeback_sb_inodes+0x77c/0xef0 fs/fs-writeback.c:1926
 wb_writeback+0x450/0xba0 fs/fs-writeback.c:2105
 wb_do_writeback fs/fs-writeback.c:2252 [inline]
 wb_workfn+0x3ff/0xe20 fs/fs-writeback.c:2292
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_do_writepages+0x38cd/0x38d0 fs/ext4/inode.c:2602
Code: c1 03 38 c1 0f 8c 7a fd ff ff 4c 89 e7 e8 db b7 ac ff e9 6d fd ff ff e8 a1 5c 55 ff 0f 0b e8 9a 5c 55 ff 0f 0b e8 93 5c 55 ff <0f> 0b 90 66 0f 1f 00 55 41 57 41 56 41 54 53 48 89 fb 49 bf 00 00
RSP: 0018:ffffc90003796ec0 EFLAGS: 00010293
RAX: ffffffff823032fd RBX: 0000004210000000 RCX: ffff888020ce8000
RDX: 0000000000000000 RSI: 0000004000000000 RDI: 0000000000000000
RBP: ffffc90003797230 R08: ffff888071f1c657 R09: 1ffff1100e3e38ca
R10: dffffc0000000000 R11: ffffed100e3e38cb R12: 0000000000000001
R13: ffff888071f1c8b0 R14: 0000004000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f21469729e0 CR3: 0000000058db8000 CR4: 00000000003506f0

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/10 16:17 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/07/07 19:41 linux-6.6.y a5df3a702b2c 4f67c4ae .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/11/10 13:32 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/10/11 12:56 linux-6.6.y e617101e5626 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/10/06 19:58 linux-6.6.y e617101e5626 91305dbe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/09/06 23:29 linux-6.6.y 355bd0b51d2f d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/08/25 06:28 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/07/10 06:52 linux-6.6.y a5df3a702b2c 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/07/09 14:42 linux-6.6.y a5df3a702b2c f4e5e155 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/07/09 14:42 linux-6.6.y a5df3a702b2c f4e5e155 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/07/09 01:36 linux-6.6.y a5df3a702b2c 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
2025/07/09 01:36 linux-6.6.y a5df3a702b2c 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan kernel BUG in ext4_do_writepages
* Struck through repros no longer work on HEAD.