page: refcount:2 mapcount:0 mapping:0000000000000000 index:0x2 pfn:0x12447 flags: 0xfff00000010001(locked|reclaim|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010001 ffffc9000b0ced70 ffffc9000b0ced70 ffffffff8c185182 raw: 0000000000000002 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 64191094032, free_ts 23824937290 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+0x3791/0x3e20 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 4595 tgid 4595 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 discard_slab mm/slub.c:2677 [inline] __put_partials+0xeb/0x130 mm/slub.c:3145 put_cpu_partial+0x17c/0x250 mm/slub.c:3220 __slab_free+0x2ea/0x3d0 mm/slub.c:4449 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_sendmsg+0x52a/0x7e0 net/socket.c:2607 ___sys_sendmsg net/socket.c:2661 [inline] __sys_sendmsg+0x292/0x380 net/socket.c:2690 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: 5112 Comm: syz.0.0 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #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 20 53 18 8c e8 98 70 d5 ff 90 0f 0b e8 d0 e4 89 ff 48 8b 7c 24 10 48 c7 c6 80 53 18 8c e8 7f 70 d5 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 a9 e4 89 ff e9 RSP: 0018:ffffc9000b0ce7f8 EFLAGS: 00010246 RAX: 0fafed757eb4ec00 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acb40 RDI: 0000000000000001 RBP: ffffea00004911c0 R08: ffffffff942c98af R09: 1ffffffff2859315 R10: dffffc0000000000 R11: fffffbfff2859316 R12: ffffea00004911c0 R13: ffffffff8c185188 R14: 00fff00000010001 R15: 1ffffd4000092238 FS: 00007fbaf5f4c6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f55356cbfa0 CR3: 000000003daf6000 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 mm/compaction.c:2910 [inline] compact_nodes mm/compaction.c:2932 [inline] sysctl_compaction_handler+0x496/0x990 mm/compaction.c:2983 proc_sys_call_handler+0x550/0x8b0 fs/proc/proc_sysctl.c:595 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x561/0xe10 fs/read_write.c:1388 __do_sys_sendfile64 fs/read_write.c:1449 [inline] __se_sys_sendfile64+0x100/0x1e0 fs/read_write.c:1441 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:0x7fbaf517dff9 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:00007fbaf5f4c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbaf5336058 RCX: 00007fbaf517dff9 RDX: 00000000200000c0 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007fbaf51f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000000a R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fbaf5336058 R15: 00007ffe2cd4e6a8 Modules linked in: ---[ end trace 0000000000000000 ]---