page: refcount:2 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x124e4 flags: 0xfff00000010001(locked|reclaim|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010001 ffffc9000d35ed80 ffffc9000d35ed80 ffffffff8c383d62 raw: 0000000000000000 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 78, tgid 78 (kswapd0), ts 70454074151, free_ts 70258656908 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_frozen_pages_noprof mm/mempolicy.c:2341 [inline] alloc_pages_noprof+0x121/0x190 mm/mempolicy.c:2361 z3fold_alloc mm/z3fold.c:1036 [inline] z3fold_zpool_malloc+0x3e5/0xd80 mm/z3fold.c:1388 zswap_compress mm/zswap.c:971 [inline] zswap_store_page mm/zswap.c:1462 [inline] zswap_store+0xe25/0x1c20 mm/zswap.c:1571 swap_writepage+0x647/0xce0 mm/page_io.c:278 shmem_writepage+0x1248/0x1610 mm/shmem.c:1647 pageout mm/vmscan.c:696 [inline] shrink_folio_list+0x35c2/0x5ac0 mm/vmscan.c:1402 evict_folios+0x45fd/0x56a0 mm/vmscan.c:4660 try_to_shrink_lruvec+0x713/0x9b0 mm/vmscan.c:4821 shrink_one+0x3b9/0x850 mm/vmscan.c:4866 shrink_many mm/vmscan.c:4929 [inline] lru_gen_shrink_node mm/vmscan.c:5007 [inline] shrink_node+0x379b/0x3e20 mm/vmscan.c:5978 kswapd_shrink_node mm/vmscan.c:6807 [inline] balance_pgdat mm/vmscan.c:6999 [inline] kswapd+0x20f3/0x3b10 mm/vmscan.c:7264 kthread+0x7a9/0x920 kernel/kthread.c:464 page last free pid 1035 tgid 1035 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 free_z3fold_page mm/z3fold.c:357 [inline] free_pages_work+0x1f4/0x270 mm/z3fold.c:507 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xabe/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd30 kernel/workqueue.c:3400 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ------------[ cut here ]------------ kernel BUG at mm/z3fold.c:1293! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5324 Comm: syz.0.0 Not tainted 6.14.0-rc5-syzkaller-00234-gb7c90e3e717a #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 00 3f 38 8c e8 a8 19 d8 ff 90 0f 0b e8 40 7e 8d ff 48 8b 7c 24 10 48 c7 c6 60 3f 38 8c e8 8f 19 d8 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 19 7e 8d ff e9 RSP: 0018:ffffc9000d35e7f8 EFLAGS: 00010246 RAX: 98857ae49d299500 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c2ab2a0 RDI: 0000000000000001 RBP: ffffea0000493900 R08: ffffffff9454a8f7 R09: 1ffffffff28a951e R10: dffffc0000000000 R11: fffffbfff28a951f R12: dffffc0000000000 R13: ffffffff8c383d68 R14: 00fff00000010001 R15: 1ffffd4000092720 FS: 00007f357c60d6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0ffc069198 CR3: 0000000033e0e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: move_to_new_folio+0x9a5/0xc20 mm/migrate.c:1071 migrate_folio_move mm/migrate.c:1360 [inline] migrate_folios_move mm/migrate.c:1712 [inline] migrate_pages_batch+0x1e84/0x30b0 mm/migrate.c:1959 migrate_pages_sync mm/migrate.c:2016 [inline] migrate_pages+0x2701/0x3680 mm/migrate.c:2098 compact_zone+0x33d5/0x4ae0 mm/compaction.c:2663 compact_node mm/compaction.c:2932 [inline] compact_nodes mm/compaction.c:2954 [inline] sysctl_compaction_handler+0x496/0x990 mm/compaction.c:3005 proc_sys_call_handler+0x5ec/0x920 fs/proc/proc_sysctl.c:601 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+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1418 [inline] __se_sys_sendfile64+0x100/0x1e0 fs/read_write.c:1410 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:0x7f357b78d169 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:00007f357c60d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f357b9a6080 RCX: 00007f357b78d169 RDX: 0000400000000180 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007f357b80e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000000a R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f357b9a6080 R15: 00007ffceb655a08 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 00 3f 38 8c e8 a8 19 d8 ff 90 0f 0b e8 40 7e 8d ff 48 8b 7c 24 10 48 c7 c6 60 3f 38 8c e8 8f 19 d8 ff 90 <0f> 0b 48 85 db 0f 85 83 00 00 00 0f 1f 44 00 00 e8 19 7e 8d ff e9 RSP: 0018:ffffc9000d35e7f8 EFLAGS: 00010246 RAX: 98857ae49d299500 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c2ab2a0 RDI: 0000000000000001 RBP: ffffea0000493900 R08: ffffffff9454a8f7 R09: 1ffffffff28a951e R10: dffffc0000000000 R11: fffffbfff28a951f R12: dffffc0000000000 R13: ffffffff8c383d68 R14: 00fff00000010001 R15: 1ffffd4000092720 FS: 00007f357c60d6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b55db56058 CR3: 0000000033e0e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400