reclaim_folio_list+0x13b/0x410 mm/vmscan.c:2183 reclaim_pages+0x1af/0x270 mm/vmscan.c:2220 madvise_cold_or_pageout_pte_range+0xb8e/0x1270 mm/madvise.c:558 walk_pmd_range mm/pagewalk.c:130 [inline] walk_pud_range mm/pagewalk.c:226 [inline] walk_p4d_range mm/pagewalk.c:264 [inline] walk_pgd_range+0x73b/0xd70 mm/pagewalk.c:305 __walk_page_range+0xa6/0x310 mm/pagewalk.c:412 walk_page_range_mm+0x266/0x390 mm/pagewalk.c:505 madvise_pageout_page_range mm/madvise.c:617 [inline] madvise_pageout mm/madvise.c:644 [inline] madvise_vma_behavior mm/madvise.c:1266 [inline] madvise_walk_vmas mm/madvise.c:1502 [inline] do_madvise+0x1dbf/0x29d0 mm/madvise.c:1689 __do_sys_madvise mm/madvise.c:1705 [inline] __se_sys_madvise mm/madvise.c:1703 [inline] __x64_sys_madvise+0x2d/0x40 mm/madvise.c:1703 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe0/0x220 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ WARNING: CPU: 1 PID: 8301 at ./include/linux/mm_inline.h:265 lru_gen_add_folio+0x3ba/0x440 include/linux/mm_inline.h:265 Modules linked in: CPU: 1 UID: 0 PID: 8301 Comm: syz.4.931 Not tainted 6.13.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:lru_gen_add_folio+0x3ba/0x440 include/linux/mm_inline.h:265 Code: 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 ad a7 e4 ff 4c 89 ef 48 c7 c6 7b 69 bf 84 e8 ce eb 05 00 c6 05 16 b1 f2 03 01 90 <0f> 0b 90 49 8b 5d 08 e9 c0 fc ff ff 49 be ff fe ff ff ff ff 8f ff RSP: 0018:ffffc90003147c18 EFLAGS: 00010046 RAX: ebd8384537c66700 RBX: 0000000000000000 RCX: ffff88810b351bc0 RDX: 0000000000000000 RSI: ffffffff84bd5e69 RDI: ffff88810b351bc0 RBP: 0000000000000003 R08: ffffffff817a5cb4 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffea0005ea5f40 R14: 0070000000000000 R15: 0010000000000000 FS: 00007fd3d68446c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe86b347bac CR3: 000000010b32a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lruvec_add_folio include/linux/mm_inline.h:352 [inline] lru_add+0x2ff/0x6f0 mm/swap.c:154 folio_batch_move_lru+0xe6/0x1c0 mm/swap.c:168 lru_add_drain_cpu+0x68/0x3c0 mm/swap.c:635 lru_add_drain+0x96/0x1d0 mm/swap.c:723 populate_vma_page_range+0x17b/0x200 mm/gup.c:1935 __mm_populate+0x15f/0x260 mm/gup.c:2036 mm_populate include/linux/mm.h:3389 [inline] vm_mmap_pgoff+0x1a0/0x250 mm/util.c:585 ksys_mmap_pgoff+0x226/0x2d0 mm/mmap.c:545 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe0/0x220 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd3d597fed9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd3d6844058 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fd3d5b45fa0 RCX: 00007fd3d597fed9 RDX: 0000000001000002 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007fd3d59f3cc8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd3d5b45fa0 R15: 00007ffe0e80ce78