do_one_initcall+0x24a/0x930 init/main.c:1257 do_initcall_level+0x157/0x210 init/main.c:1319 do_initcalls+0x71/0xd0 init/main.c:1335 kernel_init_freeable+0x435/0x5d0 init/main.c:1568 kernel_init+0x1d/0x2b0 init/main.c:1457 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 7624 at ./include/linux/rmap.h:216 __folio_rmap_sanity_checks+0x33f/0x590 include/linux/rmap.h:216 Modules linked in: CPU: 0 UID: 0 PID: 7624 Comm: syz.3.551 Not tainted 6.14.0-rc7-syzkaller-00074-ga7f2e10ecd8f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__folio_rmap_sanity_checks+0x33f/0x590 include/linux/rmap.h:216 Code: 0f 0b 90 e9 b7 fd ff ff e8 2e ef aa ff 48 ff cb e9 f8 fd ff ff e8 21 ef aa ff 4c 89 e7 48 c7 c6 00 00 36 8c e8 42 88 f5 ff 90 <0f> 0b 90 e9 e9 fd ff ff e8 04 ef aa ff 48 ff cb e9 34 fe ff ff e8 RSP: 0018:ffffc9000461f078 EFLAGS: 00010246 RAX: 3d1eaa385520a500 RBX: ffffea00011b8040 RCX: ffffc9000461ec03 RDX: 0000000000000005 RSI: ffffffff8c2ac600 RDI: ffffffff8c8100a0 RBP: 0000000000013431 R08: ffffffff903cfa77 R09: 1ffffffff2079f4e R10: dffffc0000000000 R11: fffffbfff2079f4f R12: ffffea00011b0000 R13: ffffea00011b8040 R14: 0000000000000000 R15: 0000000000000003 FS: 00007fb5a5d226c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ec18ff8 CR3: 000000007a470000 CR4: 0000000000350ef0 Call Trace: __folio_add_rmap mm/rmap.c:1170 [inline] __folio_add_file_rmap mm/rmap.c:1489 [inline] folio_add_file_rmap_ptes+0x82/0x380 mm/rmap.c:1511 set_pte_range+0x30c/0x750 mm/memory.c:5147 filemap_map_folio_range mm/filemap.c:3630 [inline] filemap_map_pages+0xfbe/0x1900 mm/filemap.c:3739 do_fault_around mm/memory.c:5367 [inline] do_read_fault mm/memory.c:5400 [inline] do_fault mm/memory.c:5543 [inline] do_pte_missing mm/memory.c:4059 [inline] handle_pte_fault mm/memory.c:5888 [inline] __handle_mm_fault+0x3f53/0x6ef0 mm/memory.c:6031 handle_mm_fault+0x3e5/0x8d0 mm/memory.c:6200 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0x1a92/0x4140 mm/gup.c:1491 populate_vma_page_range+0x264/0x330 mm/gup.c:1929 __mm_populate+0x27a/0x460 mm/gup.c:2032 mm_populate include/linux/mm.h:3392 [inline] vm_mmap_pgoff+0x38e/0x530 mm/util.c:583 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:607 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb5a4f8d169 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:00007fb5a5d22038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fb5a51a6080 RCX: 00007fb5a4f8d169 RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000200000000000 RBP: 00007fb5a500e2a0 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fb5a51a6080 R15: 00007ffe34d809a8