free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 free_pg_vec+0xf5/0x150 net/packet/af_packet.c:4326 packet_set_ring+0x6c8/0x1930 net/packet/af_packet.c:4545 packet_release+0x661/0xdc0 net/packet/af_packet.c:3167 __sock_release+0xae/0x260 net/socket.c:659 sock_close+0x1c/0x20 net/socket.c:1419 __fput+0x3f7/0xa70 fs/file_table.c:384 task_work_run+0x14d/0x240 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x215/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd ------------[ cut here ]------------ kernel BUG at include/linux/page-flags.h:314! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 32 Comm: kcompactd0 Not tainted 6.6.0-rc4-syzkaller-01118-ge5f061d5e340 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:folio_flags+0x1b7/0x1f0 include/linux/page-flags.h:314 Code: 06 41 83 e4 01 44 89 e6 e8 96 c7 b0 ff 45 84 e4 0f 85 c9 fe ff ff e8 58 cc b0 ff 48 c7 c6 c0 5e 9a 8a 48 89 ef e8 19 24 ef ff <0f> 0b e8 52 c7 06 00 e9 6c fe ff ff 48 89 ef e8 45 c7 06 00 eb b7 RSP: 0018:ffffc90000a8f8b8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888013e81dc0 RSI: ffffffff81d70447 RDI: ffffffff8ae93da0 RBP: ffffea0000c33e00 R08: 0000000000000000 R09: fffffbfff1d9cfca R10: ffffffff8ece7e57 R11: 1ffffffff1976cb1 R12: 0000000000000000 R13: ffffea0000c33bc0 R14: ffffea0000c33e00 R15: 0000000000030cf8 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f079b830d58 CR3: 00000000466e3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_test_hugetlb include/linux/page-flags.h:835 [inline] PageHuge+0x215/0x2b0 mm/hugetlb.c:2050 isolate_migratepages_block+0x61b/0x4a40 mm/compaction.c:950 isolate_migratepages mm/compaction.c:2053 [inline] compact_zone+0x18f6/0x4020 mm/compaction.c:2491 proactive_compact_node+0x118/0x1d0 mm/compaction.c:2780 kcompactd+0x710/0xd80 mm/compaction.c:3100 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_flags+0x1b7/0x1f0 include/linux/page-flags.h:314 Code: 06 41 83 e4 01 44 89 e6 e8 96 c7 b0 ff 45 84 e4 0f 85 c9 fe ff ff e8 58 cc b0 ff 48 c7 c6 c0 5e 9a 8a 48 89 ef e8 19 24 ef ff <0f> 0b e8 52 c7 06 00 e9 6c fe ff ff 48 89 ef e8 45 c7 06 00 eb b7 RSP: 0018:ffffc90000a8f8b8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888013e81dc0 RSI: ffffffff81d70447 RDI: ffffffff8ae93da0 RBP: ffffea0000c33e00 R08: 0000000000000000 R09: fffffbfff1d9cfca R10: ffffffff8ece7e57 R11: 1ffffffff1976cb1 R12: 0000000000000000 R13: ffffea0000c33bc0 R14: ffffea0000c33e00 R15: 0000000000030cf8 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f079ab97cb0 CR3: 00000000466e3000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400