syzbot
kernel BUG in jbd2_journal_dirty_metadata
Status:
upstream: reported C repro on 2026/11/22 12:06
Reported-by: syzbot+a330636d86241a5ff93b@syzkaller.appspotmail.com
First crash: 1h51m, last: 23m
Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/jbd2/transaction.c:1501!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 302 Comm: syz-executor389 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:1500
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 16 6d bc ff e9 cc fb ff ff e8 1c d9 81 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:ffffc90000be7570 EFLAGS: 00010293
RAX: ffffffff81e2e2d4 RBX: ffff88811038fdf0 RCX: ffff8881055dd000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90000be7500
RBP: ffffc90000be75f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200017cea0 R12: ffff88811038fde8
R13: 1ffff11022071fbe R14: ffff88811c4af898 R15: 1ffff11023895f13
FS: 00007f21c88916c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000013000 CR3: 0000000105991000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__ext4_handle_dirty_metadata+0xfd/0x800 fs/ext4/ext4_jbd2.c:333
ext4_do_update_inode fs/ext4/inode.c:5346 [inline]
ext4_mark_iloc_dirty+0x2b66/0x3e80 fs/ext4/inode.c:5943
ext4_xattr_set_handle+0xeca/0x12b0 fs/ext4/xattr.c:2425
ext4_xattr_set+0x1f3/0x310 fs/ext4/xattr.c:2503
ext4_xattr_security_set+0x3b/0x50 fs/ext4/xattr_security.c:30
__vfs_setxattr+0x3e2/0x430 fs/xattr.c:177
__vfs_setxattr_noperm+0x10e/0x4d0 fs/xattr.c:208
__vfs_setxattr_locked+0x203/0x220 fs/xattr.c:266
vfs_setxattr+0x8d/0x1c0 fs/xattr.c:283
setxattr+0x1df/0x3f0 fs/xattr.c:548
path_setxattr+0x11f/0x230 fs/xattr.c:567
__do_sys_lsetxattr fs/xattr.c:589 [inline]
__se_sys_lsetxattr fs/xattr.c:585 [inline]
__x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:585
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f21c88bc409
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:00007f21c8891218 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00007f21c88bc409
RDX: 0000200000004240 RSI: 0000200000004200 RDI: 00002000000041c0
RBP: 00007f21c8965e28 R08: 0000000000000000 R09: 32203a6b63617473
R10: 000000000000fd3f R11: 0000000000000246 R12: 0000200000004200
R13: 00002000000041c0 R14: 0000200000004240 R15: 00007f21c8965e20
Modules linked in:
---[ end trace 257ce30f41959a4f ]---
RIP: 0010:jbd2_journal_dirty_metadata+0xbf4/0xcc0 fs/jbd2/transaction.c:1500
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 16 6d bc ff e9 cc fb ff ff e8 1c d9 81 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:ffffc90000be7570 EFLAGS: 00010293
RAX: ffffffff81e2e2d4 RBX: ffff88811038fdf0 RCX: ffff8881055dd000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90000be7500
RBP: ffffc90000be75f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200017cea0 R12: ffff88811038fde8
R13: 1ffff11022071fbe R14: ffff88811c4af898 R15: 1ffff11023895f13
FS: 00007f21c88916c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000013000 CR3: 0000000105991000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.