syzbot
kernel BUG in jbd2_journal_dirty_metadata
Status:
upstream: reported C repro on 2026/11/29 07:39
Reported-by: syzbot+c684055a984eacc87ef8@syzkaller.appspotmail.com
First crash: 3h42m, last: 20m
Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/jbd2/transaction.c:1527!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 332 Comm: syz-executor187 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:jbd2_journal_dirty_metadata+0xbf4/0xcc0 fs/jbd2/transaction.c:1526
Code: 55 d0 e9 d7 f9 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c d9 fb ff ff 4c 89 f7 e8 e6 07 b8 ff e9 cc fb ff ff e8 9c 69 72 ff <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 65 fc ff ff 48 89 df e8
RSP: 0018:ffffc900010474f0 EFLAGS: 00010293
RAX: ffffffff81ff1274 RBX: ffff888114cef920 RCX: ffff88810fa5d100
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90001047480
RBP: ffffc90001047570 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000208e90 R12: ffff888114cef918
R13: 1ffff1102299df24 R14: ffff888114fd6268 R15: 1ffff110229fac4d
FS: 00007fc1b24126c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc1b2411fd0 CR3: 00000001231bd000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__ext4_handle_dirty_metadata+0x14e/0x7e0 fs/ext4/ext4_jbd2.c:356
ext4_do_update_inode fs/ext4/inode.c:5290 [inline]
ext4_mark_iloc_dirty+0x1256/0x19c0 fs/ext4/inode.c:5925
ext4_xattr_set_handle+0x10db/0x1510 fs/ext4/xattr.c:2425
ext4_xattr_set+0x22e/0x310 fs/ext4/xattr.c:2503
ext4_xattr_security_set+0x3c/0x50 fs/ext4/xattr_security.c:31
__vfs_setxattr+0x400/0x450 fs/xattr.c:182
__vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216
__vfs_setxattr_locked+0x20e/0x230 fs/xattr.c:277
vfs_setxattr+0x167/0x2e0 fs/xattr.c:309
do_setxattr fs/xattr.c:594 [inline]
setxattr+0x2a3/0x330 fs/xattr.c:617
path_setxattr+0x147/0x290 fs/xattr.c:636
__do_sys_lsetxattr fs/xattr.c:659 [inline]
__se_sys_lsetxattr fs/xattr.c:655 [inline]
__x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:655
x64_sys_call+0x8b7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc1b245f859
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 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 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc1b2412158 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00616d692e797469 RCX: 00007fc1b245f859
RDX: 0000000000000000 RSI: 0000200000002f40 RDI: 0000200000002f00
RBP: 00007fc1b2508e30 R08: 0000000000000000 R09: 33203a6b63617473
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc1b2508e3c
R13: 000000000000006e R14: 00007ffd3b3c2c10 R15: 00007ffd3b3c2cf8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jbd2_journal_dirty_metadata+0xbf4/0xcc0 fs/jbd2/transaction.c:1526
Code: 55 d0 e9 d7 f9 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c d9 fb ff ff 4c 89 f7 e8 e6 07 b8 ff e9 cc fb ff ff e8 9c 69 72 ff <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 65 fc ff ff 48 89 df e8
RSP: 0018:ffffc900010474f0 EFLAGS: 00010293
RAX: ffffffff81ff1274 RBX: ffff888114cef920 RCX: ffff88810fa5d100
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90001047480
RBP: ffffc90001047570 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000208e90 R12: ffff888114cef918
R13: 1ffff1102299df24 R14: ffff888114fd6268 R15: 1ffff110229fac4d
FS: 00007fc1b24126c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc1b2411fd0 CR3: 00000001231bd000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.