__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: 1 PID: 9361 Comm: syz-executor.3 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:ffffc900158c7960 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90004a62000 RDX: 0000000000040000 RSI: ffffffff81a1c246 RDI: 0000000000000003 RBP: ffffea0000458000 R08: 0000000000000003 R09: 000000000000ffff R10: 000000000000ffff R11: 0000000000000001 R12: 0000000000000000 R13: ffff88801ef92600 R14: 0000000000000001 R15: ffff888077bd01b0 FS: 00007ff38f880700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe062d691b8 CR3: 0000000079487000 CR4: 00000000003506e0 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 follow_hugetlb_page+0x427/0x1c80 mm/hugetlb.c:6211 __get_user_pages+0x27a/0x1050 mm/gup.c:1169 populate_vma_page_range+0x23d/0x320 mm/gup.c:1554 __mm_populate+0x101/0x3b0 mm/gup.c:1668 mm_populate include/linux/mm.h:2759 [inline] vm_mmap_pgoff+0x20e/0x290 mm/util.c:525 ksys_mmap_pgoff+0x1c7/0x5a0 mm/mmap.c:1529 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:0x7ff38e689109 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:00007ff38f880168 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007ff38e79bf60 RCX: 00007ff38e689109 RDX: 0000000003000003 RSI: 0000000000400000 RDI: 0000000020000000 RBP: 00007ff38e6e305d R08: ffffffffffffffff R09: 0000000000000000 R10: 000200000006c832 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc0427505f R14: 00007ff38f880300 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:ffffc900158c7960 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90004a62000 RDX: 0000000000040000 RSI: ffffffff81a1c246 RDI: 0000000000000003 RBP: ffffea0000458000 R08: 0000000000000003 R09: 000000000000ffff R10: 000000000000ffff R11: 0000000000000001 R12: 0000000000000000 R13: ffff88801ef92600 R14: 0000000000000001 R15: ffff888077bd01b0 FS: 00007ff38f880700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe062d691b8 CR3: 0000000079487000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400