proc_sys_call_handler+0x4a1/0x6e0 fs/proc/proc_sysctl.c:611 __kernel_write+0x465/0x9e0 fs/read_write.c:536 kernel_write fs/read_write.c:565 [inline] kernel_write+0xe2/0x540 fs/read_write.c:555 process_sysctl_arg+0x22f/0x470 fs/proc/proc_sysctl.c:1893 parse_one kernel/params.c:153 [inline] parse_args+0x46e/0x8b0 kernel/params.c:188 do_sysctl_args+0xc3/0x130 fs/proc/proc_sysctl.c:1925 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: 26959 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:ffffc9000573f6d8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000c381000 RDX: 0000000000040000 RSI: ffffffff81a1c246 RDI: 0000000000000003 RBP: ffffea0002d60000 R08: 0000000000000003 R09: 000000000000ffff R10: 000000000000ffff R11: 0000000000000001 R12: 0000000000000000 R13: ffff88807fbc9480 R14: 0000000000000001 R15: ffff88807597b1b0 FS: 00007fc9727dd700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002005d000 CR3: 000000003e02d000 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_short_string+0xa/0x40 arch/x86/lib/copy_user_64.S:232 Code: 83 f8 12 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 RSP: 0000:ffffc9000573fa18 EFLAGS: 00050202 RAX: 0000000000000001 RBX: 0000000000000038 RCX: 0000000000000007 RDX: 0000000000000000 RSI: 000000002005d000 RDI: ffffc9000573fa70 RBP: ffffc9000573fa70 R08: 0000000000000001 R09: ffffc9000573faa7 R10: fffff52000ae7f54 R11: 0000000000000001 R12: 00007fffffffefc8 R13: 000000002005d000 R14: dffffc0000000000 R15: 000000002005d000 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline] _copy_from_user+0x137/0x170 lib/usercopy.c:16 copy_from_user include/linux/uaccess.h:152 [inline] __copy_msghdr_from_user+0x91/0x4b0 net/socket.c:2371 copy_msghdr_from_user net/socket.c:2422 [inline] recvmsg_copy_msghdr net/socket.c:2674 [inline] ___sys_recvmsg+0xd5/0x200 net/socket.c:2746 do_recvmmsg+0x254/0x6d0 net/socket.c:2844 __sys_recvmmsg net/socket.c:2923 [inline] __do_sys_recvmmsg net/socket.c:2946 [inline] __se_sys_recvmmsg net/socket.c:2939 [inline] __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2939 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:0x7fc973889109 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:00007fc9727dd168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fc97399c030 RCX: 00007fc973889109 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00007fc9738e305d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffee6c0911f R14: 00007fc9727dd300 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:ffffc9000573f6d8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000c381000 RDX: 0000000000040000 RSI: ffffffff81a1c246 RDI: 0000000000000003 RBP: ffffea0002d60000 R08: 0000000000000003 R09: 000000000000ffff R10: 000000000000ffff R11: 0000000000000001 R12: 0000000000000000 R13: ffff88807fbc9480 R14: 0000000000000001 R15: ffff88807597b1b0 FS: 00007fc9727dd700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e824000 CR3: 000000003e02d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 83 f8 12 cmp $0x12,%eax 3: 74 0a je 0xf 5: 89 d1 mov %edx,%ecx 7: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) 9: 89 c8 mov %ecx,%eax b: 0f 01 ca clac e: c3 retq f: 89 d0 mov %edx,%eax 11: 0f 01 ca clac 14: c3 retq 15: 01 ca add %ecx,%edx 17: eb e7 jmp 0x0 19: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 20: 89 d1 mov %edx,%ecx 22: 83 e2 07 and $0x7,%edx 25: c1 e9 03 shr $0x3,%ecx 28: 74 12 je 0x3c * 2a: 4c 8b 06 mov (%rsi),%r8 <-- trapping instruction 2d: 4c 89 07 mov %r8,(%rdi) 30: 48 8d 76 08 lea 0x8(%rsi),%rsi 34: 48 8d 7f 08 lea 0x8(%rdi),%rdi 38: ff c9 dec %ecx 3a: 75 ee jne 0x2a 3c: 21 d2 and %edx,%edx 3e: 74 10 je 0x50