qlink_free mm/kasan/quarantine.c:160 [inline] qlist_free_all+0x58/0x150 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:324 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3813 [inline] slab_alloc_node mm/slub.c:3860 [inline] __do_kmalloc_node mm/slub.c:3980 [inline] __kmalloc+0x1bd/0x440 mm/slub.c:3994 kmalloc include/linux/slab.h:594 [inline] tomoyo_realpath_from_path+0xb9/0x710 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path2_perm+0x365/0x710 security/tomoyo/file.c:923 tomoyo_path_rename+0x102/0x1b0 security/tomoyo/tomoyo.c:300 security_path_rename+0x148/0x230 security/security.c:1912 do_renameat2+0x79c/0xdc0 fs/namei.c:5023 __do_sys_rename fs/namei.c:5083 [inline] __se_sys_rename fs/namei.c:5081 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5081 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd0/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x62/0x6a ------------[ cut here ]------------ WARNING: CPU: 0 PID: 30039 at include/linux/rmap.h:202 __folio_rmap_sanity_checks+0x4d5/0x630 include/linux/rmap.h:202 Modules linked in: CPU: 0 PID: 30039 Comm: syz-executor.5 Not tainted 6.7.0-rc8-next-20240105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:__folio_rmap_sanity_checks+0x4d5/0x630 include/linux/rmap.h:202 Code: 41 83 e4 01 44 89 e6 e8 09 b4 b7 ff 45 84 e4 0f 85 08 fc ff ff e8 cb b8 b7 ff 48 c7 c6 a0 b6 d9 8a 48 89 df e8 5c 12 f7 ff 90 <0f> 0b 90 e9 eb fb ff ff e8 ae b8 b7 ff be 01 00 00 00 48 89 df e8 RSP: 0018:ffffc900152ef978 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffffea000214f400 RCX: ffffc900040ca000 RDX: 0000000000040000 RSI: ffffffff81d06af4 RDI: 0000000000000000 RBP: ffffea000214f400 R08: 0000000000000000 R09: fffffbfff1e75fda R10: ffffffff8f3afed7 R11: 0000000000229910 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f82ed7c96c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002017b030 CR3: 000000002266b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __folio_add_rmap mm/rmap.c:1167 [inline] __folio_add_file_rmap mm/rmap.c:1452 [inline] folio_add_file_rmap_ptes+0x8e/0x2c0 mm/rmap.c:1478 insert_page_into_pte_locked.isra.0+0x34d/0x960 mm/memory.c:1874 insert_page mm/memory.c:1900 [inline] vm_insert_page+0x62c/0x8c0 mm/memory.c:2053 packet_mmap+0x314/0x570 net/packet/af_packet.c:4594 call_mmap include/linux/fs.h:2090 [inline] mmap_region+0x745/0x2a90 mm/mmap.c:2819 do_mmap+0x890/0xef0 mm/mmap.c:1379 vm_mmap_pgoff+0x1a7/0x3c0 mm/util.c:573 ksys_mmap_pgoff+0x421/0x5a0 mm/mmap.c:1425 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:86 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd0/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f82eca7cd29 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:00007f82ed7c90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f82ecbabf80 RCX: 00007f82eca7cd29 RDX: 0000000000000000 RSI: 0000000001000000 RDI: 0000000020568000 RBP: 00007f82ecac947a R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f82ecbabf80 R15: 00007ffe30383d28