syzbot
kernel BUG in __ext4_journal_stop
Status:
upstream: reported C repro on 2023/06/03 10:54
Bug presence:
origin:upstream
[Documentation on labels]
Reported-by: syzbot+62ea9cb4a5d3e75b7ae2@syzkaller.appspotmail.com
First crash: 1167d, last: 100d
▶
▼
Last patch testing requests (8)
▶
▼
Fix bisection attempts (17)
Sample crash report:
EXT4-fs (loop0): mounted filesystem without journal. Quota mode: none.
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4_jbd2.c:53!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 304 Comm: syz-executor140 Not tainted 6.1.145-syzkaller-00006-g831a57b4a783 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x192/0x1a0 fs/ext4/ext4_jbd2.c:116
Code: c3 e8 82 40 8e ff e9 f7 fe ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 14 ff ff ff e8 88 a3 d2 ff e9 0a ff ff ff e8 5e 40 8e ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90000ea7738 EFLAGS: 00010293
RAX: ffffffff81e1c9c2 RBX: 0000000000000000 RCX: ffff888102739440
RDX: 0000000000000000 RSI: 000000000000032c RDI: ffffffff864177a3
RBP: ffffc90000ea7770 R08: dffffc0000000000 R09: ffffed10228ab276
R10: ffffed10228ab276 R11: 1ffff110228ab275 R12: 1ffff11020af70ee
R13: ffff8881057b8770 R14: 000000000000032c R15: ffffffff864177a3
FS: 00007f351d8e96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f351d8c8d58 CR3: 00000001238d9000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_write_inline_data_end+0x7b8/0xa90 fs/ext4/inline.c:812
ext4_da_write_end+0x1ce/0x8c0 fs/ext4/inode.c:3093
generic_perform_write+0x3a2/0x6d0 mm/filemap.c:3893
ext4_buffered_write_iter+0x36f/0x660 fs/ext4/file.c:285
ext4_file_write_iter+0x18f/0x13d0 fs/ext4/file.c:-1
call_write_iter include/linux/fs.h:2282 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x5db/0xca0 fs/read_write.c:584
ksys_write+0x140/0x240 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:646
x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f351d930cb9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 1a 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f351d8e9218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f351d9b86e8 RCX: 00007f351d930cb9
RDX: 0000000000000012 RSI: 0000200000000040 RDI: 0000000000000004
RBP: 00007f351d9b86e0 R08: 00007f351d8e8fb7 R09: 0000000000000000
R10: 0000000000000012 R11: 0000000000000246 R12: 00007f351d984de8
R13: 00007f351d984052 R14: 0000200000000000 R15: 0000200000000040
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x192/0x1a0 fs/ext4/ext4_jbd2.c:116
Code: c3 e8 82 40 8e ff e9 f7 fe ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 14 ff ff ff e8 88 a3 d2 ff e9 0a ff ff ff e8 5e 40 8e ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90000ea7738 EFLAGS: 00010293
RAX: ffffffff81e1c9c2 RBX: 0000000000000000 RCX: ffff888102739440
RDX: 0000000000000000 RSI: 000000000000032c RDI: ffffffff864177a3
RBP: ffffc90000ea7770 R08: dffffc0000000000 R09: ffffed10228ab276
R10: ffffed10228ab276 R11: 1ffff110228ab275 R12: 1ffff11020af70ee
R13: ffff8881057b8770 R14: 000000000000032c R15: ffffffff864177a3
FS: 00007f351d8e96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f351d8c8d58 CR3: 00000001238d9000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.