kernel_init_freeable+0x432/0x5d0 init/main.c:1567 kernel_init+0x1d/0x2b0 init/main.c:1457 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6323 at ./include/linux/rmap.h:217 __folio_rmap_sanity_checks+0x375/0x590 include/linux/rmap.h:217 Modules linked in: CPU: 0 UID: 0 PID: 6323 Comm: syz.1.37 Not tainted 6.14.0-syzkaller-11144-g1e7857b28020 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__folio_rmap_sanity_checks+0x375/0x590 include/linux/rmap.h:217 Code: 0f 0b 90 e9 dd fd ff ff e8 48 de ab ff 48 ff cb e9 34 fe ff ff e8 3b de ab ff 4c 89 e7 48 c7 c6 60 25 56 8c e8 7c b5 f5 ff 90 <0f> 0b 90 e9 25 fe ff ff e8 1e de ab ff 4c 89 e7 48 c7 c6 c0 26 56 RSP: 0018:ffffc900033b7078 EFLAGS: 00010246 RAX: d1e381e18605fe00 RBX: ffffea00013557c0 RCX: 0000000000000005 RDX: ffffc9000b429000 RSI: ffffffff8e4e03ff RDI: ffffffff8ca0b080 RBP: 0000000000003c00 R08: ffffffff82357026 R09: fffffbfff1d7a980 R10: dffffc0000000000 R11: fffffbfff1d7a980 R12: ffffea0001351800 R13: ffffea0001351c00 R14: 0000000000000000 R15: 00000000000000f0 FS: 00007f5a34ea86c0(0000) GS:ffff888124fe4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5a34e87d58 CR3: 0000000035356000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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+0x30e/0x750 mm/memory.c:5149 filemap_map_folio_range mm/filemap.c:3642 [inline] filemap_map_pages+0xfc4/0x1910 mm/filemap.c:3751 do_fault_around mm/memory.c:5369 [inline] do_read_fault mm/memory.c:5402 [inline] do_fault mm/memory.c:5545 [inline] do_pte_missing mm/memory.c:4056 [inline] handle_pte_fault mm/memory.c:5890 [inline] __handle_mm_fault+0x3f53/0x6ef0 mm/memory.c:6033 handle_mm_fault+0x2dd/0x800 mm/memory.c:6202 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0x1adf/0x4180 mm/gup.c:1491 populate_vma_page_range+0x266/0x340 mm/gup.c:1929 __mm_populate+0x27d/0x460 mm/gup.c:2032 mm_populate include/linux/mm.h:3382 [inline] vm_mmap_pgoff+0x390/0x530 mm/util.c:584 ksys_mmap_pgoff+0x4ee/0x720 mm/mmap.c:607 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5a33f8d169 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:00007f5a34ea8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f5a341a5fa0 RCX: 00007f5a33f8d169 RDX: 00000000027ffff7 RSI: 0000000000600000 RDI: 0000200000000000 RBP: 00007f5a3400e2a0 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000004012011 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5a341a5fa0 R15: 00007ffc9ce5c0a8