F2FS-fs (loop0): Found nat_bits in checkpoint F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 ------------[ cut here ]------------ kernel BUG at fs/f2fs/file.c:105! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 5094 Comm: syz-executor176 Not tainted 6.10.0-rc1-next-20240531-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:f2fs_vm_page_mkwrite+0x109d/0x1440 fs/f2fs/file.c:105 Code: 00 89 de e8 95 de aa fd 31 ff 89 de e8 8c de aa fd 45 84 ff 0f 85 8d 03 00 00 e8 7e db aa fd e9 16 f3 ff ff e8 74 db aa fd 90 <0f> 0b e8 6c db aa fd 4c 89 ff 48 c7 c6 40 66 0f 8c e8 fd 9d f4 fd RSP: 0018:ffffc9000336f2a0 EFLAGS: 00010293 RAX: ffffffff83eba07c RBX: 0000000000000400 RCX: ffff888076a99e00 RDX: 0000000000000000 RSI: 0000000000000400 RDI: 0000000000000000 RBP: ffffc9000336f408 R08: ffffffff83eb95fd R09: 1ffff1100fc522c6 R10: dffffc0000000000 R11: ffffed100fc522c7 R12: ffff88807e291630 R13: 0000000020010602 R14: dffffc0000000000 R15: 0000000020010602 FS: 0000555560ea2380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000280 CR3: 000000007fa48000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_page_mkwrite+0x19b/0x480 mm/memory.c:3151 wp_page_shared mm/memory.c:3554 [inline] do_wp_page+0x23fd/0x5310 mm/memory.c:3704 handle_pte_fault+0x119a/0x7130 mm/memory.c:5485 __handle_mm_fault mm/memory.c:5612 [inline] handle_mm_fault+0x10df/0x1ba0 mm/memory.c:5777 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+0x33/0x70 arch/x86/lib/copy_user_64.S:58 Code: 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 00 00 00 00 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb RSP: 0018:ffffc9000336fd50 EFLAGS: 00050212 RAX: 00000000665d0372 RBX: 0000000020000290 RCX: 0000000000000010 RDX: 0000000000000000 RSI: ffffc9000336fdc0 RDI: 0000000020000280 RBP: ffffc9000336fe30 R08: ffffc9000336fdcf R09: 1ffff9200066dfb9 R10: dffffc0000000000 R11: fffff5200066dfba R12: 0000000000000010 R13: dffffc0000000000 R14: 0000000020000280 R15: ffffc9000336fdc0 copy_user_generic arch/x86/include/asm/uaccess_64.h:110 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:131 [inline] _copy_to_user+0x86/0xb0 lib/usercopy.c:46 copy_to_user include/linux/uaccess.h:191 [inline] put_timespec64+0xfa/0x150 kernel/time/time.c:910 __do_sys_clock_gettime kernel/time/posix-timers.c:1144 [inline] __se_sys_clock_gettime kernel/time/posix-timers.c:1132 [inline] __x64_sys_clock_gettime+0x1d7/0x230 kernel/time/posix-timers.c:1132 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:0x7f0155f2fc19 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc52fa7868 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0155f2fc19 RDX: 00007f0155f2fc19 RSI: 0000000020000280 RDI: 0000000000000000 RBP: 00007f0155fa85f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000246 R12: 00007ffc52fa78a0 R13: 00007ffc52fa7ac8 R14: 431bde82d7b634db R15: 00007f0155f7803b Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_vm_page_mkwrite+0x109d/0x1440 fs/f2fs/file.c:105 Code: 00 89 de e8 95 de aa fd 31 ff 89 de e8 8c de aa fd 45 84 ff 0f 85 8d 03 00 00 e8 7e db aa fd e9 16 f3 ff ff e8 74 db aa fd 90 <0f> 0b e8 6c db aa fd 4c 89 ff 48 c7 c6 40 66 0f 8c e8 fd 9d f4 fd RSP: 0018:ffffc9000336f2a0 EFLAGS: 00010293 RAX: ffffffff83eba07c RBX: 0000000000000400 RCX: ffff888076a99e00 RDX: 0000000000000000 RSI: 0000000000000400 RDI: 0000000000000000 RBP: ffffc9000336f408 R08: ffffffff83eb95fd R09: 1ffff1100fc522c6 R10: dffffc0000000000 R11: ffffed100fc522c7 R12: ffff88807e291630 R13: 0000000020010602 R14: dffffc0000000000 R15: 0000000020010602 FS: 0000555560ea2380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561f3aaca000 CR3: 000000007fa48000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 40 83 f9 08 rex cmp $0x8,%ecx 4: 73 21 jae 0x27 6: 85 c9 test %ecx,%ecx 8: 74 0f je 0x19 a: 8a 06 mov (%rsi),%al c: 88 07 mov %al,(%rdi) e: 48 ff c7 inc %rdi 11: 48 ff c6 inc %rsi 14: 48 ff c9 dec %rcx 17: 75 f1 jne 0xa 19: c3 ret 1a: cc int3 1b: cc int3 1c: cc int3 1d: cc int3 1e: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) 25: 00 00 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 df je 0x19 3a: 83 f9 08 cmp $0x8,%ecx 3d: 73 e8 jae 0x27 3f: eb .byte 0xeb