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:2658 release_free_list mm/compaction.c:108 [inline] compact_zone+0x4238/0x4ad0 mm/compaction.c:2721 kcompactd_do_work mm/compaction.c:3089 [inline] kcompactd+0xa8d/0x1510 mm/compaction.c:3188 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 ]------------ WARNING: CPU: 1 PID: 1145 at ./include/linux/mm_inline.h:265 lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265 Modules linked in: CPU: 1 UID: 0 PID: 1145 Comm: kworker/u8:8 Not tainted 6.13.0-rc1-next-20241205-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: loop6 loop_workfn RIP: 0010:lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265 Code: 44 89 c2 ff ba 01 00 00 00 e9 8b fa ff ff e8 35 89 c2 ff 4c 89 ff 48 c7 c6 c0 c8 13 8c e8 c6 41 0c 00 c6 05 f1 32 27 0e 01 90 <0f> 0b 90 e9 82 f6 ff ff 89 d9 80 e1 07 38 c1 0f 8c 19 f7 ff ff 48 RSP: 0018:ffffc9000472eac0 EFLAGS: 00010046 RAX: f9c5f9b18fdac100 RBX: ffffea0001cf5fc8 RCX: ffffc9000472e603 RDX: 0000000000000006 RSI: ffffffff8c0aa440 RDI: ffffffff8c5fbe80 RBP: ffffc9000472ebb8 R08: ffffffff9019d9b7 R09: 1ffffffff2033b36 R10: dffffc0000000000 R11: fffffbfff2033b37 R12: 0000000000000000 R13: 1ffffd400039ebf8 R14: 0000020000000000 R15: ffffea0001cf5fc0 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f21e1fdc7a3 CR3: 0000000049012000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lruvec_add_folio include/linux/mm_inline.h:352 [inline] lru_add+0x704/0xdb0 mm/swap.c:154 folio_batch_move_lru+0x26b/0x420 mm/swap.c:168 lru_add_drain_cpu+0x118/0x890 mm/swap.c:635 lru_add_drain+0x123/0x3e0 mm/swap.c:723 swap_cluster_readahead+0x57e/0x710 mm/swap_state.c:700 shmem_swapin_cluster mm/shmem.c:1701 [inline] shmem_swapin_folio+0xfee/0x1700 mm/shmem.c:2243 shmem_get_folio_gfp+0x3f9/0x1840 mm/shmem.c:2352 shmem_get_folio mm/shmem.c:2525 [inline] shmem_write_begin+0x165/0x350 mm/shmem.c:3181 generic_perform_write+0x346/0x990 mm/filemap.c:4036 shmem_file_write_iter+0xf9/0x120 mm/shmem.c:3357 do_iter_readv_writev+0x600/0x880 vfs_iter_write+0x23e/0x600 fs/read_write.c:974 lo_write_bvec drivers/block/loop.c:243 [inline] lo_write_simple drivers/block/loop.c:264 [inline] do_req_filebacked drivers/block/loop.c:511 [inline] loop_handle_cmd drivers/block/loop.c:1909 [inline] loop_process_work+0x1429/0x21c0 drivers/block/loop.c:1944 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 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