------------[ cut here ]------------ kernel BUG at fs/f2fs/file.c:101! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5933 Comm: syz-executor.2 Not tainted 6.1.92-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:f2fs_vm_page_mkwrite+0xf42/0x1410 fs/f2fs/file.c:101 Code: fe e9 a6 f4 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 07 fb ff ff e8 cd 57 20 fe e9 fd fa ff ff e8 13 53 c9 06 e8 4e d8 c8 fd <0f> 0b e8 47 d8 c8 fd 4c 89 ff 48 c7 c6 a0 73 31 8b e8 48 89 08 fe RSP: 0018:ffffc900067277c0 EFLAGS: 00010287 RAX: ffffffff83c1b502 RBX: 0000000000000400 RCX: 0000000000040000 RDX: ffffc90003201000 RSI: 0000000000000841 RDI: 0000000000000842 RBP: ffffc90006727908 R08: ffffffff83c1aa71 R09: ffffed100aae9a93 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90006727b70 R13: 0000000020010601 R14: 0000000020010602 R15: ffff88805574d490 FS: 00007f9938fd26c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fd22000 CR3: 000000006002c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_page_mkwrite+0x1a1/0x5f0 mm/memory.c:2992 wp_page_shared+0x164/0x380 mm/memory.c:3341 handle_pte_fault mm/memory.c:5031 [inline] __handle_mm_fault mm/memory.c:5155 [inline] handle_mm_fault+0x2525/0x5340 mm/memory.c:5276 do_user_addr_fault arch/x86/mm/fault.c:1371 [inline] handle_page_fault arch/x86/mm/fault.c:1462 [inline] exc_page_fault+0x26f/0x660 arch/x86/mm/fault.c:1518 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:copy_user_short_string+0xd/0x40 arch/x86/lib/copy_user_64.S:233 Code: 74 0a 89 d1 f3 a4 89 c8 0f 01 ca c3 89 d0 0f 01 ca c3 01 ca eb e7 0f 1f 80 00 00 00 00 89 d1 83 e2 07 c1 e9 03 74 12 4c 8b 06 <4c> 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 89 d1 8a RSP: 0018:ffffc90006727d70 EFLAGS: 00050202 RAX: ffffffff84385601 RBX: 00007fffffffeff0 RCX: 0000000000000002 RDX: 0000000000000000 RSI: ffffc90006727de0 RDI: 0000000020000280 RBP: ffffc90006727e50 R08: 00000000665cf021 R09: fffff52000ce4fbe R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010 R13: dffffc0000000000 R14: 0000000020000280 R15: ffffc90006727de0 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0xe9/0x130 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:169 [inline] put_timespec64+0xf6/0x150 kernel/time/time.c:812 __do_sys_clock_gettime kernel/time/posix-timers.c:1134 [inline] __se_sys_clock_gettime kernel/time/posix-timers.c:1122 [inline] __x64_sys_clock_gettime+0x1cd/0x220 kernel/time/posix-timers.c:1122 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f993827cee9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9938fd20c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4 RAX: ffffffffffffffda RBX: 00007f99383b3fa0 RCX: 00007f993827cee9 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000000 RBP: 00007f99382c947f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f99383b3fa0 R15: 00007ffc03175408 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_vm_page_mkwrite+0xf42/0x1410 fs/f2fs/file.c:101 Code: fe e9 a6 f4 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 07 fb ff ff e8 cd 57 20 fe e9 fd fa ff ff e8 13 53 c9 06 e8 4e d8 c8 fd <0f> 0b e8 47 d8 c8 fd 4c 89 ff 48 c7 c6 a0 73 31 8b e8 48 89 08 fe RSP: 0018:ffffc900067277c0 EFLAGS: 00010287 RAX: ffffffff83c1b502 RBX: 0000000000000400 RCX: 0000000000040000 RDX: ffffc90003201000 RSI: 0000000000000841 RDI: 0000000000000842 RBP: ffffc90006727908 R08: ffffffff83c1aa71 R09: ffffed100aae9a93 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90006727b70 R13: 0000000020010601 R14: 0000000020010602 R15: ffff88805574d490 FS: 00007f9938fd26c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f01bed4019c CR3: 000000006002c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 74 0a je 0xc 2: 89 d1 mov %edx,%ecx 4: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) 6: 89 c8 mov %ecx,%eax 8: 0f 01 ca clac b: c3 ret c: 89 d0 mov %edx,%eax e: 0f 01 ca clac 11: c3 ret 12: 01 ca add %ecx,%edx 14: eb e7 jmp 0xfffffffd 16: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 1d: 89 d1 mov %edx,%ecx 1f: 83 e2 07 and $0x7,%edx 22: c1 e9 03 shr $0x3,%ecx 25: 74 12 je 0x39 27: 4c 8b 06 mov (%rsi),%r8 * 2a: 4c 89 07 mov %r8,(%rdi) <-- trapping instruction 2d: 48 8d 76 08 lea 0x8(%rsi),%rsi 31: 48 8d 7f 08 lea 0x8(%rdi),%rdi 35: ff c9 dec %ecx 37: 75 ee jne 0x27 39: 21 d2 and %edx,%edx 3b: 74 10 je 0x4d 3d: 89 d1 mov %edx,%ecx 3f: 8a .byte 0x8a