(syz.0.16,5914,0):ocfs2_truncate_log_needs_flush:5830 ERROR: bug expression: le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count) (syz.0.16,5914,0):ocfs2_truncate_log_needs_flush:5830 ERROR: slot 0, invalid truncate log parameters: used = 128, count = 39 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/alloc.c:5830! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5914 Comm: syz.0.16 Not tainted 6.16.0-rc7-syzkaller-gdd9c17322a6c #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ocfs2_truncate_log_needs_flush+0x2d8/0x2e0 fs/ocfs2/alloc.c:5827 Code: 0f b7 00 4c 89 e7 48 c7 c6 b2 d0 a6 8d ba c6 16 00 00 48 c7 c1 80 23 ca 8b 45 89 e8 45 89 f9 50 e8 5d 11 1e 00 48 83 c4 08 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90002bdf540 EFLAGS: 00010292 RAX: 4d80427e01a1cd00 RBX: ffff888033c2c174 RCX: 4d80427e01a1cd00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90002bdf610 R08: ffffc90002bdf107 R09: 1ffff9200057be20 R10: dffffc0000000000 R11: fffff5200057be21 R12: ffffc90002bdf5a0 R13: 0000000000000000 R14: 1ffff110080ec758 R15: 0000000000000080 FS: 00007fc6db14c6c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe745b53000 CR3: 0000000058e30000 CR4: 0000000000352ef0 Call Trace: ocfs2_xattr_set+0xaea/0x11f0 fs/ocfs2/xattr.c:3624 __vfs_setxattr+0x43c/0x480 fs/xattr.c:200 __vfs_setxattr_noperm+0x12d/0x660 fs/xattr.c:234 vfs_setxattr+0x16b/0x2f0 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] filename_setxattr+0x274/0x600 fs/xattr.c:665 path_setxattrat+0x364/0x3a0 fs/xattr.c:713 __do_sys_setxattr fs/xattr.c:747 [inline] __se_sys_setxattr fs/xattr.c:743 [inline] __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:743 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc6da38e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc6db14c038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fc6da5b5fa0 RCX: 00007fc6da38e929 RDX: 0000200000001400 RSI: 0000200000000240 RDI: 00002000000001c0 RBP: 00007fc6da410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000841 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc6da5b5fa0 R15: 00007ffdd6111fc8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_truncate_log_needs_flush+0x2d8/0x2e0 fs/ocfs2/alloc.c:5827 Code: 0f b7 00 4c 89 e7 48 c7 c6 b2 d0 a6 8d ba c6 16 00 00 48 c7 c1 80 23 ca 8b 45 89 e8 45 89 f9 50 e8 5d 11 1e 00 48 83 c4 08 90 <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90002bdf540 EFLAGS: 00010292 RAX: 4d80427e01a1cd00 RBX: ffff888033c2c174 RCX: 4d80427e01a1cd00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90002bdf610 R08: ffffc90002bdf107 R09: 1ffff9200057be20 R10: dffffc0000000000 R11: fffff5200057be21 R12: ffffc90002bdf5a0 R13: 0000000000000000 R14: 1ffff110080ec758 R15: 0000000000000080 FS: 00007fc6db14c6c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe745b64000 CR3: 0000000058e30000 CR4: 0000000000352ef0