page: refcount:2 mapcount:0 mapping:0000000000000000 index:0x8 pfn:0x11a61 flags: 0xfff00000010001(locked|reclaim|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010001 ffffc900004ef2b0 ffffc900004ef2b0 ffffffff8c1850c2 raw: 0000000000000008 0000000000000000 00000002ffffffff 0000000000000000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12800(GFP_NOWAIT|__GFP_NORETRY), pid 79, tgid 79 (kswapd0), ts 86183425546, free_ts 85953549301 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1545 [inline] get_page_from_freelist+0x3045/0x3190 mm/page_alloc.c:3457 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4733 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 z3fold_alloc mm/z3fold.c:1036 [inline] z3fold_zpool_malloc+0x3d1/0xe70 mm/z3fold.c:1388 zswap_compress mm/zswap.c:928 [inline] zswap_store+0xec7/0x1a00 mm/zswap.c:1461 swap_writepage+0x790/0xcd0 mm/page_io.c:271 pageout mm/vmscan.c:688 [inline] shrink_folio_list+0x3c0e/0x8cc0 mm/vmscan.c:1366 evict_folios+0x549b/0x7b50 mm/vmscan.c:4583 try_to_shrink_lruvec+0x9ab/0xbb0 mm/vmscan.c:4778 shrink_one+0x3b9/0x850 mm/vmscan.c:4816 shrink_many mm/vmscan.c:4879 [inline] lru_gen_shrink_node mm/vmscan.c:4957 [inline] shrink_node+0x3799/0x3de0 mm/vmscan.c:5937 kswapd_shrink_node mm/vmscan.c:6765 [inline] balance_pgdat mm/vmscan.c:6957 [inline] kswapd+0x1ca3/0x3700 mm/vmscan.c:7226 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 5096 tgid 5096 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1108 [inline] free_unref_page+0xcfb/0xf20 mm/page_alloc.c:2638 __slab_free+0x31b/0x3d0 mm/slub.c:4491 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:247 [inline] slab_post_alloc_hook mm/slub.c:4086 [inline] slab_alloc_node mm/slub.c:4135 [inline] kmem_cache_alloc_lru_noprof+0x139/0x2b0 mm/slub.c:4154 shmem_alloc_inode+0x28/0x40 mm/shmem.c:4769 alloc_inode fs/inode.c:263 [inline] new_inode_pseudo fs/inode.c:1102 [inline] new_inode+0x6e/0x310 fs/inode.c:1121 __shmem_get_inode mm/shmem.c:2806 [inline] shmem_get_inode+0x34a/0xd70 mm/shmem.c:2877 shmem_mknod+0x5f/0x1e0 mm/shmem.c:3573 shmem_mkdir+0x33/0x70 mm/shmem.c:3634 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4257 do_mkdirat+0x264/0x3a0 fs/namei.c:4280 __do_sys_mkdirat fs/namei.c:4295 [inline] __se_sys_mkdirat fs/namei.c:4293 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4293 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 ------------[ cut here ]------------ kernel BUG at mm/z3fold.c:1293! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 28 Comm: kcompactd0 Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:z3fold_page_migrate+0xc22/0x1170 mm/z3fold.c:1293 Code: ff 48 89 ef 48 c7 c6 60 52 18 8c e8 88 74 d5 ff 90 0f 0b e8 c0 fa 89 ff 48 8b 7c 24 10 48 c7 c6 c0 52 18 8c e8 6f 74 d5 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 99 fa 89 ff e9 RSP: 0018:ffffc900004eed38 EFLAGS: 00010246 RAX: 98fa01475ce2a400 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acac0 RDI: 0000000000000001 RBP: ffffea0000469840 R08: ffffffff901ce7af R09: 1ffffffff2039cf5 R10: dffffc0000000000 R11: fffffbfff2039cf6 R12: ffffea0000469840 R13: ffffffff8c1850c8 R14: 00fff00000010001 R15: 1ffffd400008d308 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7242304728 CR3: 000000000e734000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: move_to_new_folio+0x9f3/0x1330 mm/migrate.c:1077 migrate_folio_move mm/migrate.c:1366 [inline] migrate_pages_batch+0x266b/0x36d0 mm/migrate.c:1897 migrate_pages_sync mm/migrate.c:1990 [inline] migrate_pages+0x2734/0x3560 mm/migrate.c:2072 compact_zone+0x3404/0x4af0 mm/compaction.c:2641 compact_node+0x2de/0x460 mm/compaction.c:2910 kcompactd+0x788/0x1530 mm/compaction.c:3208 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:z3fold_page_migrate+0xc22/0x1170 mm/z3fold.c:1293 Code: ff 48 89 ef 48 c7 c6 60 52 18 8c e8 88 74 d5 ff 90 0f 0b e8 c0 fa 89 ff 48 8b 7c 24 10 48 c7 c6 c0 52 18 8c e8 6f 74 d5 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 99 fa 89 ff e9 RSP: 0018:ffffc900004eed38 EFLAGS: 00010246 RAX: 98fa01475ce2a400 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acac0 RDI: 0000000000000001 RBP: ffffea0000469840 R08: ffffffff901ce7af R09: 1ffffffff2039cf5 R10: dffffc0000000000 R11: fffffbfff2039cf6 R12: ffffea0000469840 R13: ffffffff8c1850c8 R14: 00fff00000010001 R15: 1ffffd400008d308 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f919c39b524 CR3: 000000001e3cc000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400