------------[ cut here ]------------ kernel BUG at fs/ocfs2/aops.c:1161! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5350 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_write_cluster fs/ocfs2/aops.c:1161 [inline] RIP: 0010:ocfs2_write_cluster_by_desc+0x1da7/0x1dd0 fs/ocfs2/aops.c:1221 Code: 48 c7 c6 0b 92 70 8e ba 6c 04 00 00 48 c7 c1 c0 9b 76 8c e8 6b 66 1d 00 48 8b 44 24 10 c6 40 1e f8 90 0f 0b e8 8a ed d1 fd 90 <0f> 0b e8 82 ed d1 fd 90 0f 0b e8 7a ed d1 fd 90 0f 0b e8 72 ed d1 RSP: 0018:ffffc9000e346620 EFLAGS: 00010246 RAX: ffffffff83f73236 RBX: ffff888054052488 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000e346970 R08: ffff888054052313 R09: 1ffff1100a80a462 R10: dffffc0000000000 R11: ffffed100a80a463 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888057112014 R15: 0000000000000000 FS: 00007f74daef66c0(0000) GS:ffff88808a9fa000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff82b366a0 CR3: 00000000450bd000 CR4: 0000000000352ef0 Call Trace: ocfs2_write_begin_nolock+0x3346/0x41f0 fs/ocfs2/aops.c:1797 __ocfs2_page_mkwrite fs/ocfs2/mmap.c:92 [inline] ocfs2_page_mkwrite+0x63b/0xb60 fs/ocfs2/mmap.c:143 do_page_mkwrite+0x147/0x310 mm/memory.c:3889 wp_page_shared mm/memory.c:4295 [inline] do_wp_page+0x1a77/0x4c30 mm/memory.c:4518 handle_pte_fault mm/memory.c:6692 [inline] __handle_mm_fault mm/memory.c:6817 [inline] handle_mm_fault+0x19c9/0x2f80 mm/memory.c:6984 do_user_addr_fault+0x7f6/0x1480 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+0x4a/0xa0 arch/x86/lib/copy_user_64.S:74 Code: cc cc cc 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 c5 a4 c3 cc cc cc cc 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 RSP: 0018:ffffc9000e347698 EFLAGS: 00050206 RAX: ffffffff84eed401 RBX: ffff888056904000 RCX: 0000000000000d00 RDX: 0000000000000000 RSI: ffff888056904300 RDI: 0000200000404000 RBP: ffffc9000e347808 R08: ffff888056904fff R09: 1ffff1100ad209ff R10: dffffc0000000000 R11: ffffed100ad20a00 R12: 1ffff92001c68faf R13: 0000200000403d00 R14: ffffc9000e347d88 R15: 0000000000001000 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] copy_to_user_iter lib/iov_iter.c:25 [inline] iterate_ubuf include/linux/iov_iter.h:30 [inline] iterate_and_advance2 include/linux/iov_iter.h:302 [inline] iterate_and_advance include/linux/iov_iter.h:332 [inline] _copy_to_iter+0x255/0x17e0 lib/iov_iter.c:197 copy_page_to_iter+0x23f/0x330 lib/iov_iter.c:374 copy_folio_to_iter include/linux/uio.h:212 [inline] filemap_read+0xa14/0x11e0 mm/filemap.c:2904 ocfs2_file_read_iter+0x2a6/0xb70 fs/ocfs2/file.c:2631 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x595/0xa80 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:716 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:0x7f74d9f9fb19 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:00007f74daef5fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f74da226180 RCX: 00007f74d9f9fb19 RDX: 00000000fffffeb1 RSI: 000020000000cd00 RDI: 0000000000000006 RBP: 00007f74da037b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f74da226218 R14: 00007f74da226180 R15: 00007ffdce7a0d38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_write_cluster fs/ocfs2/aops.c:1161 [inline] RIP: 0010:ocfs2_write_cluster_by_desc+0x1da7/0x1dd0 fs/ocfs2/aops.c:1221 Code: 48 c7 c6 0b 92 70 8e ba 6c 04 00 00 48 c7 c1 c0 9b 76 8c e8 6b 66 1d 00 48 8b 44 24 10 c6 40 1e f8 90 0f 0b e8 8a ed d1 fd 90 <0f> 0b e8 82 ed d1 fd 90 0f 0b e8 7a ed d1 fd 90 0f 0b e8 72 ed d1 RSP: 0018:ffffc9000e346620 EFLAGS: 00010246 RAX: ffffffff83f73236 RBX: ffff888054052488 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000e346970 R08: ffff888054052313 R09: 1ffff1100a80a462 R10: dffffc0000000000 R11: ffffed100a80a463 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888057112014 R15: 0000000000000000 FS: 00007f74daef66c0(0000) GS:ffff88808a9fa000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff82b366a0 CR3: 00000000450bd000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: cc int3 1: cc int3 2: cc int3 3: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) a: 00 00 00 d: 0f 1f 00 nopl (%rax) 10: 48 8b 06 mov (%rsi),%rax 13: 48 89 07 mov %rax,(%rdi) 16: 48 83 c6 08 add $0x8,%rsi 1a: 48 83 c7 08 add $0x8,%rdi 1e: 83 e9 08 sub $0x8,%ecx 21: 74 db je 0xfffffffe 23: 83 f9 08 cmp $0x8,%ecx 26: 73 e8 jae 0x10 28: eb c5 jmp 0xffffffef * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: c3 ret 2d: cc int3 2e: cc int3 2f: cc int3 30: cc int3 31: 48 8b 06 mov (%rsi),%rax 34: 48 89 07 mov %rax,(%rdi) 37: 48 8d 47 08 lea 0x8(%rdi),%rax 3b: 48 83 e0 f8 and $0xfffffffffffffff8,%rax 3f: 48 rex.W