loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode. (syz.0.0,5106,0):ocfs2_truncate_log_needs_flush:5822 ERROR: bug expression: le16_to_cpu(tl->tl_used) > le16_to_cpu(tl->tl_count) (syz.0.0,5106,0):ocfs2_truncate_log_needs_flush:5822 ERROR: slot 0, invalid truncate log parameters: used = 512, count = 39 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/alloc.c:5822! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5106 Comm: syz.0.0 Not tainted 6.12.0-rc1-syzkaller-00381-g2a130b7e1fcd #0 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+0x312/0x320 fs/ocfs2/alloc.c:5819 Code: 0f b7 00 4c 89 f7 48 c7 c6 69 d6 11 8e ba be 16 00 00 48 c7 c1 60 11 49 8c 45 89 e0 41 89 d9 50 e8 d3 ab 20 00 48 83 c4 08 90 <0f> 0b e8 27 89 42 08 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000303f540 EFLAGS: 00010292 RAX: 83f024a540c45c00 RBX: 0000000000000200 RCX: 83f024a540c45c00 RDX: ffffc9000b3f1000 RSI: 0000000000001211 RDI: 0000000000001212 RBP: ffffc9000303f610 R08: ffffffff8174af0c R09: 1ffff92000607e18 R10: dffffc0000000000 R11: fffff52000607e19 R12: 0000000000000000 R13: ffff88804ca4cac2 R14: ffffc9000303f5a0 R15: 1000000000000000 FS: 00007f052b8ac6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f052a9fef98 CR3: 0000000012ea4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_xattr_set+0xeab/0x1930 fs/ocfs2/xattr.c:3625 __vfs_setxattr+0x468/0x4a0 fs/xattr.c:200 __vfs_setxattr_noperm+0x12e/0x660 fs/xattr.c:234 vfs_setxattr+0x221/0x430 fs/xattr.c:321 do_setxattr fs/xattr.c:629 [inline] path_setxattr+0x37e/0x4d0 fs/xattr.c:658 __do_sys_lsetxattr fs/xattr.c:683 [inline] __se_sys_lsetxattr fs/xattr.c:679 [inline] __x64_sys_lsetxattr+0xb8/0xd0 fs/xattr.c:679 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f052ab7dff9 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:00007f052b8ac038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f052ad35f80 RCX: 00007f052ab7dff9 RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000020000280 RBP: 00007f052abf0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f052ad35f80 R15: 00007ffd15af3678 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_truncate_log_needs_flush+0x312/0x320 fs/ocfs2/alloc.c:5819 Code: 0f b7 00 4c 89 f7 48 c7 c6 69 d6 11 8e ba be 16 00 00 48 c7 c1 60 11 49 8c 45 89 e0 41 89 d9 50 e8 d3 ab 20 00 48 83 c4 08 90 <0f> 0b e8 27 89 42 08 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000303f540 EFLAGS: 00010292 RAX: 83f024a540c45c00 RBX: 0000000000000200 RCX: 83f024a540c45c00 RDX: ffffc9000b3f1000 RSI: 0000000000001211 RDI: 0000000000001212 RBP: ffffc9000303f610 R08: ffffffff8174af0c R09: 1ffff92000607e18 R10: dffffc0000000000 R11: fffff52000607e19 R12: 0000000000000000 R13: ffff88804ca4cac2 R14: ffffc9000303f5a0 R15: 1000000000000000 FS: 00007f052b8ac6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f051ffff000 CR3: 0000000012ea4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400