page: refcount:2 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11a12 flags: 0xfff00000010001(locked|reclaim|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010001 ffffc900004ef2b0 ffffc900004ef2b0 ffffffff8c1850c2 raw: 0000000000000000 0000000000000002 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 78, tgid 78 (kswapd0), ts 81081989973, free_ts 78334043304 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+0x292/0x710 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:927 [inline] zswap_store+0xec7/0x1a00 mm/zswap.c:1460 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 5100 tgid 5100 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:4490 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:4085 [inline] slab_alloc_node mm/slub.c:4134 [inline] kmem_cache_alloc_node_noprof+0x16b/0x320 mm/slub.c:4186 __alloc_skb+0x1c3/0x440 net/core/skbuff.c:668 netlink_sendmsg+0x638/0xcb0 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:744 __sys_sendto+0x39b/0x4f0 net/socket.c:2214 __do_sys_sendto net/socket.c:2226 [inline] __se_sys_sendto net/socket.c:2222 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2222 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-rc3-syzkaller-00183-g6efbea77b390 #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 a8 74 d5 ff 90 0f 0b e8 c0 f8 89 ff 48 8b 7c 24 10 48 c7 c6 c0 52 18 8c e8 8f 74 d5 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 99 f8 89 ff e9 RSP: 0018:ffffc900004eed38 EFLAGS: 00010246 RAX: c0ecf3d3fc7aaa00 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acac0 RDI: 0000000000000001 RBP: ffffea0000468480 R08: ffffffff901cff6f R09: 1ffffffff2039fed R10: dffffc0000000000 R11: fffffbfff2039fee R12: ffffea0000468480 R13: ffffffff8c1850c8 R14: 00fff00000010001 R15: 1ffffd400008d090 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fed21f22658 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 a8 74 d5 ff 90 0f 0b e8 c0 f8 89 ff 48 8b 7c 24 10 48 c7 c6 c0 52 18 8c e8 8f 74 d5 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 99 f8 89 ff e9 RSP: 0018:ffffc900004eed38 EFLAGS: 00010246 RAX: c0ecf3d3fc7aaa00 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acac0 RDI: 0000000000000001 RBP: ffffea0000468480 R08: ffffffff901cff6f R09: 1ffffffff2039fed R10: dffffc0000000000 R11: fffffbfff2039fee R12: ffffea0000468480 R13: ffffffff8c1850c8 R14: 00fff00000010001 R15: 1ffffd400008d090 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0eacefd580 CR3: 0000000012ef2000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400