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: 3h15m, last: 1h11m
Sample crash report:
EXT4-fs (loop2): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0
EXT4-fs (loop2): mounted filesystem with ordered data mode. Opts: dioread_nolock,nombcache,nodelalloc,i_version,,errors=continue
------------[ cut here ]------------
kernel BUG at fs/jbd2/transaction.c:1501!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 371 Comm: syz.2.17 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:ffffc90000cb7570 EFLAGS: 00010293
RAX: ffffffff81e2e2d4 RBX: ffff88811d369190 RCX: ffff88810d571400
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90000cb7500
RBP: ffffc90000cb75f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000196ea0 R12: ffff88811d369188
R13: 1ffff11023a6d232 R14: ffff88811d3de8f0 R15: 1ffff11023a7bd1e
FS: 00007fe34f4f66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000013000 CR3: 0000000126fb7000 CR4: 00000000003506a0
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:0x7fe34f6a0559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe34f4f6028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fe34f91cfa0 RCX: 00007fe34f6a0559
RDX: 0000200000004240 RSI: 0000200000004200 RDI: 00002000000041c0
RBP: 00007fe34f72f136 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000fd3f R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe34f91d038 R14: 00007fe34f91cfa0 R15: 00007ffef1018b78
Modules linked in:
---[ end trace 9ec2de1bd0bfb3e7 ]---
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:ffffc90000cb7570 EFLAGS: 00010293
RAX: ffffffff81e2e2d4 RBX: ffff88811d369190 RCX: ffff88810d571400
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90000cb7500
RBP: ffffc90000cb75f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000196ea0 R12: ffff88811d369188
R13: 1ffff11023a6d232 R14: ffff88811d3de8f0 R15: 1ffff11023a7bd1e
FS: 00007fe34f4f66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000013000 CR3: 0000000126fb7000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.