page: refcount:2 mapcount:0 mapping:0000000000000000 index:0x71 pfn:0x11980 flags: 0xfff00000010001(locked|reclaim|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010001 ffffc9000b066d70 ffffc9000b066d70 ffffffff8c185182 raw: 0000000000000071 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 5106, tgid 5105 (syz.0.0), ts 68874955917, free_ts 68874051324 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_slowpath+0x702/0x1020 mm/page_alloc.c:4350 __alloc_pages_noprof+0x493/0x710 mm/page_alloc.c:4746 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 shrink_zones mm/vmscan.c:6195 [inline] do_try_to_free_pages+0x78c/0x1cf0 mm/vmscan.c:6257 try_to_free_pages+0x47c/0x1080 mm/vmscan.c:6507 __perform_reclaim mm/page_alloc.c:3910 [inline] __alloc_pages_direct_reclaim+0x178/0x3c0 mm/page_alloc.c:3932 page last free pid 3793 tgid 3793 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 free_z3fold_page mm/z3fold.c:357 [inline] free_pages_work+0x1f4/0x270 mm/z3fold.c:507 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 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 ------------[ cut here ]------------ kernel BUG at mm/z3fold.c:1293! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5107 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:ffffc9000b0667f8 EFLAGS: 00010246 RAX: bf35b7c27cb64900 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acb40 RDI: 0000000000000001 RBP: ffffea0000466000 R08: ffffffff942c98af R09: 1ffffffff2859315 R10: dffffc0000000000 R11: fffffbfff2859316 R12: ffffea0000466000 R13: ffffffff8c185188 R14: 00fff00000010001 R15: 1ffffd400008cc00 FS: 00007fe4864f16c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe47afbd000 CR3: 0000000000b4a000 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:0x7fe48577dff9 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:00007fe4864f1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fe485936058 RCX: 00007fe48577dff9 RDX: 00000000200000c0 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007fe4857f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000000a R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe485936058 R15: 00007ffc6663bdf8 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 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:ffffc9000b0667f8 EFLAGS: 00010246 RAX: bf35b7c27cb64900 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8c0acb40 RDI: 0000000000000001 RBP: ffffea0000466000 R08: ffffffff942c98af R09: 1ffffffff2859315 R10: dffffc0000000000 R11: fffffbfff2859316 R12: ffffea0000466000 R13: ffffffff8c185188 R14: 00fff00000010001 R15: 1ffffd400008cc00 FS: 00007fe4864f16c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f399db444d0 CR3: 0000000000b4a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400