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,5320,0):ocfs2_dio_end_io:2405 ERROR: Direct IO failed, bytes = -28 (syz.0.0,5320,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,5320,0):ocfs2_truncate_log_needs_flush:5822 ERROR: slot 0, invalid truncate log parameters: used = 2048, count = 39 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/alloc.c:5822! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-02665-g1e26c5e28ca5 #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 fs/ocfs2/alloc.c:5819 [inline] RIP: 0010:ocfs2_remove_btree_range+0x1861/0x1870 fs/ocfs2/alloc.c:5744 Code: 0f b7 00 4c 89 ff 48 c7 c6 52 ab 34 8e ba be 16 00 00 48 c7 c1 20 15 69 8c 45 89 e0 41 89 d9 50 e8 54 25 22 00 48 83 c4 08 90 <0f> 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d3d70a0 EFLAGS: 00010296 RAX: 79f3fbea1b465e00 RBX: 0000000000000800 RCX: 79f3fbea1b465e00 RDX: ffffc9000e4ea000 RSI: 000000000003c6c8 RDI: 000000000003c6c9 RBP: ffffc9000d3d7378 R08: ffffffff81a2ae7c R09: 1ffff92001a7ad84 R10: dffffc0000000000 R11: fffff52001a7ad85 R12: 0000000000000000 R13: ffff888042744ac2 R14: 1ffff110084e8958 R15: ffffc9000d3d7160 FS: 00007fdf787f56c0(0000) GS:ffff88808c825000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdf787d1f70 CR3: 0000000042552000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_remove_inode_range+0x199e/0x2950 fs/ocfs2/file.c:1907 ocfs2_reflink_remap_extent fs/ocfs2/refcounttree.c:4534 [inline] ocfs2_reflink_remap_blocks+0xce2/0x1f20 fs/ocfs2/refcounttree.c:4681 ocfs2_remap_file_range+0x67e/0x970 fs/ocfs2/file.c:2740 vfs_copy_file_range+0xe9d/0x1480 fs/read_write.c:1589 __do_sys_copy_file_range fs/read_write.c:1675 [inline] __se_sys_copy_file_range+0x3fe/0x600 fs/read_write.c:1642 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdf7c38d169 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:00007fdf787f5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fdf7c5a5fa0 RCX: 00007fdf7c38d169 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 000000000000000a RBP: 00007fdf7c40e2a0 R08: fffffbffa003e45c R09: 0700000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fdf7c5a5fa0 R15: 00007ffffbcde248 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_truncate_log_needs_flush fs/ocfs2/alloc.c:5819 [inline] RIP: 0010:ocfs2_remove_btree_range+0x1861/0x1870 fs/ocfs2/alloc.c:5744 Code: 0f b7 00 4c 89 ff 48 c7 c6 52 ab 34 8e ba be 16 00 00 48 c7 c1 20 15 69 8c 45 89 e0 41 89 d9 50 e8 54 25 22 00 48 83 c4 08 90 <0f> 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d3d70a0 EFLAGS: 00010296 RAX: 79f3fbea1b465e00 RBX: 0000000000000800 RCX: 79f3fbea1b465e00 RDX: ffffc9000e4ea000 RSI: 000000000003c6c8 RDI: 000000000003c6c9 RBP: ffffc9000d3d7378 R08: ffffffff81a2ae7c R09: 1ffff92001a7ad84 R10: dffffc0000000000 R11: fffff52001a7ad85 R12: 0000000000000000 R13: ffff888042744ac2 R14: 1ffff110084e8958 R15: ffffc9000d3d7160 FS: 00007fdf787f56c0(0000) GS:ffff88808c825000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557fdce95058 CR3: 0000000042552000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400