loop4: detected capacity change from 0 to 2048 general protection fault, maybe for address 0x0: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 23352 Comm: syz-executor.4 Not tainted 6.5.0-next-20230908-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:can_reclaim_anon_pages mm/vmscan.c:621 [inline] RIP: 0010:zone_reclaimable_pages+0x849/0xa00 mm/vmscan.c:654 Code: c9 ff 89 df e8 78 6f 21 00 bf ff ff ff ff 89 c3 89 c6 e8 ea cf c9 ff 83 fb ff 0f 85 bc fb ff ff e9 2b ff ff ff e8 67 d4 c9 ff 05 00 00 00 00 fc ff df 84 c0 74 08 3c 01 0f 8e 0e 01 00 00 80 RSP: 0018:ffffc9000539f180 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801be6d940 RSI: ffffffff81be1639 RDI: 0000000000000007 RBP: 000000000000148c R08: 0000000000000007 R09: 0000000000000000 R10: 000000000000148c R11: 0000000000000000 R12: dffffc0000000000 R13: ffff88813fffa000 R14: 0000000000000003 R15: 0000000000000002 FS: 00007f31dffc56c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000202fc000 CR3: 00000000699c0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: allow_direct_reclaim+0xe5/0x4f0 mm/vmscan.c:6953 throttle_direct_reclaim+0x36b/0x7d0 mm/vmscan.c:7031 try_to_free_pages+0x1b3/0x710 mm/vmscan.c:7095 __perform_reclaim mm/page_alloc.c:3657 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:3679 [inline] __alloc_pages_slowpath.constprop.0+0x798/0x2360 mm/page_alloc.c:4084 __alloc_pages+0x411/0x4a0 mm/page_alloc.c:4469 hpage_collapse_alloc_page mm/khugepaged.c:893 [inline] alloc_charge_hpage+0x2ba/0xbd0 mm/khugepaged.c:1066 collapse_huge_page+0x1b5/0x4880 mm/khugepaged.c:1104 hpage_collapse_scan_pmd+0x59e/0x21d0 mm/khugepaged.c:1400 madvise_collapse+0x778/0xb70 mm/khugepaged.c:2752 madvise_vma_behavior+0x200/0x1e60 mm/madvise.c:1093 madvise_walk_vmas+0x1cf/0x2c0 mm/madvise.c:1267 do_madvise+0x333/0x660 mm/madvise.c:1447 __do_sys_madvise mm/madvise.c:1460 [inline] __se_sys_madvise mm/madvise.c:1458 [inline] __x64_sys_madvise+0xaa/0x110 mm/madvise.c:1458 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f31df27cae9 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:00007f31dffc50c8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f31df39bf80 RCX: 00007f31df27cae9 RDX: 0000000000000019 RSI: 0000000000c00304 RDI: 0000000020000000 RBP: 00007f31df2c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f31df39bf80 R15: 00007ffec69a5308 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:can_reclaim_anon_pages mm/vmscan.c:621 [inline] RIP: 0010:zone_reclaimable_pages+0x849/0xa00 mm/vmscan.c:654 Code: c9 ff 89 df e8 78 6f 21 00 bf ff ff ff ff 89 c3 89 c6 e8 ea cf c9 ff 83 fb ff 0f 85 bc fb ff ff e9 2b ff ff ff e8 67 d4 c9 ff 05 00 00 00 00 fc ff df 84 c0 74 08 3c 01 0f 8e 0e 01 00 00 80 RSP: 0018:ffffc9000539f180 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801be6d940 RSI: ffffffff81be1639 RDI: 0000000000000007 RBP: 000000000000148c R08: 0000000000000007 R09: 0000000000000000 R10: 000000000000148c R11: 0000000000000000 R12: dffffc0000000000 R13: ffff88813fffa000 R14: 0000000000000003 R15: 0000000000000002 FS: 00007f31dffc56c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f28d7969c10 CR3: 00000000699c0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c9 leave 1: ff 89 df e8 78 6f decl 0x6f78e8df(%rcx) 7: 21 00 and %eax,(%rax) 9: bf ff ff ff ff mov $0xffffffff,%edi e: 89 c3 mov %eax,%ebx 10: 89 c6 mov %eax,%esi 12: e8 ea cf c9 ff call 0xffc9d001 17: 83 fb ff cmp $0xffffffff,%ebx 1a: 0f 85 bc fb ff ff jne 0xfffffbdc 20: e9 2b ff ff ff jmp 0xffffff50 25: e8 67 d4 c9 ff call 0xffc9d491 * 2a: a0 05 00 00 00 00 fc movabs 0xdffffc0000000005,%al <-- trapping instruction 31: ff df 33: 84 c0 test %al,%al 35: 74 08 je 0x3f 37: 3c 01 cmp $0x1,%al 39: 0f 8e 0e 01 00 00 jle 0x14d 3f: 80 .byte 0x80