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. ======================================================= JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. ------------[ cut here ]------------ kernel BUG at fs/ocfs2/refcounttree.c:2895! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5313 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:ocfs2_clear_cow_buffer+0x79/0x80 fs/ocfs2/refcounttree.c:2895 Code: 02 75 21 e8 69 d8 d7 fd 48 89 df be 08 00 00 00 e8 5c 23 49 fe f0 80 23 ef 31 c0 5b 41 5e c3 cc cc cc cc cc e8 48 d8 d7 fd 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000db56898 EFLAGS: 00010283 RAX: ffffffff83ef5c78 RBX: ffff888012341c40 RCX: 0000000000100000 RDX: ffffc9000ed12000 RSI: 0000000000004ac7 RDI: 0000000000004ac8 RBP: 0000000000000001 R08: ffff888012341c47 R09: 1ffff11002468388 R10: dffffc0000000000 R11: ffffed1002468389 R12: ffff888012341c40 R13: ffff888012341d20 R14: 0000000000000002 R15: 0000000000001000 FS: 00007f2c0454a6c0(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000000c0 CR3: 0000000012832000 CR4: 0000000000352ef0 Call Trace: walk_page_buffers+0x94/0x1e0 fs/ocfs2/aops.c:421 ocfs2_duplicate_clusters_by_page+0x70b/0xcd0 fs/ocfs2/refcounttree.c:2974 ocfs2_replace_clusters fs/ocfs2/refcounttree.c:3125 [inline] ocfs2_make_clusters_writable fs/ocfs2/refcounttree.c:3257 [inline] ocfs2_replace_cow+0xaf4/0x1c90 fs/ocfs2/refcounttree.c:3351 ocfs2_refcount_cow_hunk fs/ocfs2/refcounttree.c:3429 [inline] ocfs2_refcount_cow+0x790/0xd40 fs/ocfs2/refcounttree.c:3472 ocfs2_write_begin_nolock+0x728/0x41f0 fs/ocfs2/aops.c:1681 __ocfs2_page_mkwrite fs/ocfs2/mmap.c:92 [inline] ocfs2_page_mkwrite+0x640/0xb60 fs/ocfs2/mmap.c:143 do_page_mkwrite+0x147/0x310 mm/memory.c:3754 wp_page_shared mm/memory.c:4155 [inline] do_wp_page+0x1a9c/0x4b80 mm/memory.c:4378 handle_pte_fault mm/memory.c:6520 [inline] __handle_mm_fault mm/memory.c:6645 [inline] handle_mm_fault+0x1576/0x3720 mm/memory.c:6814 do_user_addr_fault+0x746/0x1340 arch/x86/mm/fault.c:1394 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0010:rep_movs_alternative+0x33/0xa0 arch/x86/lib/copy_user_64.S:61 Code: 73 25 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 e9 8d 67 04 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 73 e8 eb RSP: 0018:ffffc9000db57da8 EFLAGS: 00050246 RAX: 0000000008090004 RBX: 0000000000000008 RCX: 0000000000000008 RDX: 0000000000000000 RSI: ffffc9000db57e60 RDI: 00002000000000c0 RBP: ffffc9000db57ee0 R08: ffffc9000db57e67 R09: 1ffff92001b6afcc R10: dffffc0000000000 R11: fffff52001b6afcd R12: 00002000000000c8 R13: 00007ffffffff000 R14: ffffc9000db57e60 R15: 00002000000000c0 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:202 [inline] _copy_to_user+0x8a/0xb0 lib/usercopy.c:24 copy_to_user include/linux/uaccess.h:230 [inline] __do_sys_copy_file_range fs/read_write.c:1696 [inline] __se_sys_copy_file_range+0x3d7/0x480 fs/read_write.c:1649 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2c0359e0d9 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:00007f2c04549fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007f2c03825fa0 RCX: 00007f2c0359e0d9 RDX: 000000000000000a RSI: 0000000000000000 RDI: 000000000000000b RBP: 00007f2c03635024 R08: 0000000000400000 R09: 0000000000000000 R10: 00002000000000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2c03826038 R14: 00007f2c03825fa0 R15: 00007ffe9d49a458 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_clear_cow_buffer+0x79/0x80 fs/ocfs2/refcounttree.c:2895 Code: 02 75 21 e8 69 d8 d7 fd 48 89 df be 08 00 00 00 e8 5c 23 49 fe f0 80 23 ef 31 c0 5b 41 5e c3 cc cc cc cc cc e8 48 d8 d7 fd 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000db56898 EFLAGS: 00010283 RAX: ffffffff83ef5c78 RBX: ffff888012341c40 RCX: 0000000000100000 RDX: ffffc9000ed12000 RSI: 0000000000004ac7 RDI: 0000000000004ac8 RBP: 0000000000000001 R08: ffff888012341c47 R09: 1ffff11002468388 R10: dffffc0000000000 R11: ffffed1002468389 R12: ffff888012341c40 R13: ffff888012341d20 R14: 0000000000000002 R15: 0000000000001000 FS: 00007f2c0454a6c0(0000) GS:ffff88808c30a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000080 CR3: 0000000012832000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 73 25 jae 0x27 2: 85 c9 test %ecx,%ecx 4: 74 0f je 0x15 6: 8a 06 mov (%rsi),%al 8: 88 07 mov %al,(%rdi) a: 48 ff c7 inc %rdi d: 48 ff c6 inc %rsi 10: 48 ff c9 dec %rcx 13: 75 f1 jne 0x6 15: e9 8d 67 04 00 jmp 0x467a7 1a: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 21: 00 00 00 24: 0f 1f 00 nopl (%rax) 27: 48 8b 06 mov (%rsi),%rax * 2a: 48 89 07 mov %rax,(%rdi) <-- trapping instruction 2d: 48 83 c6 08 add $0x8,%rsi 31: 48 83 c7 08 add $0x8,%rdi 35: 83 e9 08 sub $0x8,%ecx 38: 74 db je 0x15 3a: 83 f9 08 cmp $0x8,%ecx 3d: 73 e8 jae 0x27 3f: eb .byte 0xeb