kernel_init+0x6f/0x1d0 init/main.c:1529 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 page_owner free stack trace missing ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1538! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3754 Comm: syz-executor.4 Not tainted 5.19.0-rc3-next-20220624-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:folio_unlock+0x196/0x1d0 mm/filemap.c:1538 Code: de 41 0f 94 c4 44 89 e7 e8 17 e8 d8 ff 41 38 dc 0f 85 23 ff ff ff e8 79 ec d8 ff 48 c7 c6 c0 8f d6 89 48 89 ef e8 1a a8 0e 00 <0f> 0b 48 89 df e8 30 3e 25 00 e9 9a fe ff ff 48 89 df e8 23 3e 25 RSP: 0018:ffffc90003eff9f8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90003442000 RDX: 0000000000040000 RSI: ffffffff81a1c246 RDI: 0000000000000003 RBP: ffffea0000458000 R08: 0000000000000003 R09: 000000000000ffff R10: 000000000000ffff R11: 0000000000000001 R12: 0000000000000000 R13: ffff88801d2ded20 R14: 0000000000000001 R15: ffff88807438a510 FS: 00007f1705a22700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2eb25000 CR3: 0000000020ea1000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hugetlb_no_page mm/hugetlb.c:5664 [inline] hugetlb_fault+0x18d5/0x20a0 mm/hugetlb.c:5765 handle_mm_fault+0x661/0x790 mm/memory.c:5164 do_user_addr_fault+0x489/0x1250 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1488 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:copy_user_enhanced_fast_string+0xa/0x40 arch/x86/lib/copy_user_64.S:166 Code: ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 20 0f 01 cb 83 fa 40 72 38 89 d1 a4 31 c0 0f 01 ca c3 89 ca eb 0a 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc90003effd30 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 0000000000000070 RCX: 0000000000000070 RDX: 0000000000000070 RSI: ffffc90003effe58 RDI: 0000000020000080 RBP: 0000000020000080 R08: 0000000000000000 R09: ffffc90003effec7 R10: fffff520007dffd8 R11: 0000000000000001 R12: 00007fffffffef90 R13: ffffc90003effe58 R14: ffff88802fcb2000 R15: ffffc90003effe58 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 lib/usercopy.c:33 [inline] _copy_to_user+0x123/0x140 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:160 [inline] copy_shmid_to_user ipc/shm.c:843 [inline] ksys_shmctl.constprop.0+0x1c6/0x350 ipc/shm.c:1265 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f1704889109 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1705a22168 EFLAGS: 00000246 ORIG_RAX: 000000000000001f RAX: ffffffffffffffda RBX: 00007f170499bf60 RCX: 00007f1704889109 RDX: 0000000020000080 RSI: 000000000000000f RDI: 0000000000000001 RBP: 00007f17048e305d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5290c06f R14: 00007f1705a22300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_unlock+0x196/0x1d0 mm/filemap.c:1538 Code: de 41 0f 94 c4 44 89 e7 e8 17 e8 d8 ff 41 38 dc 0f 85 23 ff ff ff e8 79 ec d8 ff 48 c7 c6 c0 8f d6 89 48 89 ef e8 1a a8 0e 00 <0f> 0b 48 89 df e8 30 3e 25 00 e9 9a fe ff ff 48 89 df e8 23 3e 25 RSP: 0018:ffffc90003eff9f8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90003442000 RDX: 0000000000040000 RSI: ffffffff81a1c246 RDI: 0000000000000003 RBP: ffffea0000458000 R08: 0000000000000003 R09: 000000000000ffff R10: 000000000000ffff R11: 0000000000000001 R12: 0000000000000000 R13: ffff88801d2ded20 R14: 0000000000000001 R15: ffff88807438a510 FS: 00007f1705a22700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2eb25000 CR3: 0000000020ea1000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ff c9 dec %ecx 2: 75 f2 jne 0xfffffff6 4: 89 d1 mov %edx,%ecx 6: c1 e9 03 shr $0x3,%ecx 9: 83 e2 07 and $0x7,%edx c: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) f: 89 d1 mov %edx,%ecx 11: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) 13: 31 c0 xor %eax,%eax 15: 0f 01 ca clac 18: c3 retq 19: 8d 0c ca lea (%rdx,%rcx,8),%ecx 1c: 89 ca mov %ecx,%edx 1e: eb 20 jmp 0x40 20: 0f 01 cb stac 23: 83 fa 40 cmp $0x40,%edx 26: 72 38 jb 0x60 28: 89 d1 mov %edx,%ecx * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 31 c0 xor %eax,%eax 2e: 0f 01 ca clac 31: c3 retq 32: 89 ca mov %ecx,%edx 34: eb 0a jmp 0x40 36: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 3d: 00 00 00