OCFS2: ERROR (device loop0): int ocfs2_validate_inode_block(struct super_block *, struct buffer_head *): Invalid dinode #71: signature = DE01 On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. OCFS2: File system is now read-only. (syz.0.0,5335,0):ocfs2_assign_bh:2416 ERROR: status = -30 (syz.0.0,5335,0):ocfs2_inode_lock_full_nested:2511 ERROR: status = -30 (syz.0.0,5335,0):__ocfs2_flush_truncate_log:6050 ERROR: status = -30 (syz.0.0,5335,0):ocfs2_try_to_free_truncate_log:6137 ERROR: status = -30 (syz.0.0,5335,0):ocfs2_write_begin_nolock:1873 ERROR: status = -30 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/suballoc.c:804! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5335 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #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_reserve_suballoc_bits+0x479b/0x4eb0 fs/ocfs2/suballoc.c:804 Code: e1 07 80 c1 03 38 c1 0f 8c 75 dd ff ff 48 8d bc 24 b0 01 00 00 e8 b5 11 73 fe e9 63 dd ff ff e8 db c0 39 08 e8 c6 2e 08 fe 90 <0f> 0b e8 be 2e 08 fe 48 c7 c7 60 80 e3 8e 48 8b 74 24 28 48 89 da RSP: 0018:ffffc9000d4d5de0 EFLAGS: 00010287 RAX: ffffffff838db14a RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 000000000000769e RDI: 000000000000769f RBP: ffffc9000d4d62d0 R08: ffffffff838d6c25 R09: 1ffffffff203a9fe R10: dffffc0000000000 R11: fffffbfff203a9ff R12: 1ffff92001a9ac3c R13: ffff8880120bae80 R14: ffff88805408de00 R15: dffffc0000000000 FS: 00007fba1bd866c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000100 CR3: 0000000042882000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_reserve_cluster_bitmap_bits fs/ocfs2/suballoc.c:1132 [inline] ocfs2_reserve_clusters_with_limit+0x3dd/0xb60 fs/ocfs2/suballoc.c:1177 ocfs2_lock_refcount_allocators+0x6c4/0xa20 fs/ocfs2/refcounttree.c:2871 ocfs2_make_clusters_writable fs/ocfs2/refcounttree.c:3186 [inline] ocfs2_replace_cow+0x740/0x25d0 fs/ocfs2/refcounttree.c:3349 ocfs2_refcount_cow_hunk fs/ocfs2/refcounttree.c:3427 [inline] ocfs2_refcount_cow+0x9c9/0x11c0 fs/ocfs2/refcounttree.c:3470 ocfs2_write_begin_nolock+0x7f3/0x4ec0 fs/ocfs2/aops.c:1699 __ocfs2_page_mkwrite fs/ocfs2/mmap.c:93 [inline] ocfs2_page_mkwrite+0x752/0xed0 fs/ocfs2/mmap.c:144 do_page_mkwrite+0x198/0x480 mm/memory.c:3176 wp_page_shared mm/memory.c:3577 [inline] do_wp_page+0x2352/0x5160 mm/memory.c:3727 handle_pte_fault+0x111e/0x68a0 mm/memory.c:5817 __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6112 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x15/0x70 arch/x86/lib/copy_user_64.S:44 Code: cc 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 83 f9 40 73 40 83 f9 08 73 21 85 c9 74 0f 8a 06 <88> 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 0f 1f 84 RSP: 0018:ffffc9000d4d7dc8 EFLAGS: 00050246 RAX: 0000000000013c00 RBX: 00000000200000c8 RCX: 0000000000000008 RDX: 0000000000000000 RSI: ffffc9000d4d7e80 RDI: 00000000200000c0 RBP: ffffc9000d4d7f00 R08: ffffc9000d4d7e87 R09: 1ffff92001a9afd0 R10: dffffc0000000000 R11: fffff52001a9afd1 R12: 0000000000000008 R13: 00007fffffffefff R14: ffffc9000d4d7e80 R15: 00000000200000c0 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] _inline_copy_to_user include/linux/uaccess.h:197 [inline] _copy_to_user+0x8b/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] __do_sys_copy_file_range fs/read_write.c:1684 [inline] __se_sys_copy_file_range+0x565/0x600 fs/read_write.c:1637 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:0x7fba1af7e819 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:00007fba1bd86038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fba1b136080 RCX: 00007fba1af7e819 RDX: 000000000000000c RSI: 0000000000000000 RDI: 000000000000000d RBP: 00007fba1aff175e R08: 0000000000003df1 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fba1b136080 R15: 00007ffea3014438 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_reserve_suballoc_bits+0x479b/0x4eb0 fs/ocfs2/suballoc.c:804 Code: e1 07 80 c1 03 38 c1 0f 8c 75 dd ff ff 48 8d bc 24 b0 01 00 00 e8 b5 11 73 fe e9 63 dd ff ff e8 db c0 39 08 e8 c6 2e 08 fe 90 <0f> 0b e8 be 2e 08 fe 48 c7 c7 60 80 e3 8e 48 8b 74 24 28 48 89 da RSP: 0018:ffffc9000d4d5de0 EFLAGS: 00010287 RAX: ffffffff838db14a RBX: 00000000ffffffff RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 000000000000769e RDI: 000000000000769f RBP: ffffc9000d4d62d0 R08: ffffffff838d6c25 R09: 1ffffffff203a9fe R10: dffffc0000000000 R11: fffffbfff203a9ff R12: 1ffff92001a9ac3c R13: ffff8880120bae80 R14: ffff88805408de00 R15: dffffc0000000000 FS: 00007fba1bd866c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d752034108 CR3: 0000000042882000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: cc int3 1: 0f 1f 40 00 nopl 0x0(%rax) 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: f3 0f 1e fa endbr64 19: 48 83 f9 40 cmp $0x40,%rcx 1d: 73 40 jae 0x5f 1f: 83 f9 08 cmp $0x8,%ecx 22: 73 21 jae 0x45 24: 85 c9 test %ecx,%ecx 26: 74 0f je 0x37 28: 8a 06 mov (%rsi),%al * 2a: 88 07 mov %al,(%rdi) <-- trapping instruction 2c: 48 ff c7 inc %rdi 2f: 48 ff c6 inc %rsi 32: 48 ff c9 dec %rcx 35: 75 f1 jne 0x28 37: c3 ret 38: cc int3 39: cc int3 3a: cc int3 3b: cc int3 3c: 66 data16 3d: 0f .byte 0xf 3e: 1f (bad) 3f: 84 .byte 0x84