free_pg_vec net/packet/af_packet.c:4330 [inline] packet_set_ring+0x1953/0x24d0 net/packet/af_packet.c:4549 packet_release+0x7de/0xcc0 net/packet/af_packet.c:3158 __sock_release net/socket.c:659 [inline] sock_close+0xbc/0x240 net/socket.c:1421 __fput+0x429/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa1b/0x27e0 kernel/exit.c:878 do_group_exit+0x207/0x2c0 kernel/exit.c:1027 get_signal+0x176e/0x1850 kernel/signal.c:2907 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0xc9/0x360 kernel/entry/common.c:212 do_syscall_64+0x10a/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x6d/0x75 ------------[ cut here ]------------ kernel BUG at include/linux/page-flags.h:314! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 20418 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller-08073-g480e035fc4c7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:folio_flags+0x11a/0x1b0 include/linux/page-flags.h:314 Code: 48 89 d8 48 25 ff 0f 00 00 74 21 e8 80 19 a1 ff e9 52 ff ff ff e8 76 19 a1 ff 48 89 df 48 c7 c6 c0 49 b6 8b e8 67 de e9 ff 90 <0f> 0b 48 89 df be 08 00 00 00 e8 e7 6a 04 00 48 89 d8 48 c1 e8 03 RSP: 0018:ffffc9000ba46f68 EFLAGS: 00010246 RAX: d0711a3fca16ac00 RBX: ffffea0000485400 RCX: ffffc9000ba46d03 RDX: 0000000000000001 RSI: ffffffff8baad360 RDI: ffffffff8bfed360 RBP: 0000000000000000 R08: ffffffff8f872cef R09: 1ffffffff1f0e59d R10: dffffc0000000000 R11: fffffbfff1f0e59e R12: 1ffffd4000090a80 R13: 0000000000000000 R14: 0000000000000001 R15: dffffc0000000000 FS: 00007f17335a76c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f80a6d5e070 CR3: 00000000799a4000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: folio_test_hugetlb+0xab/0x1d0 include/linux/page-flags.h:849 PageHuge+0xe3/0x1c0 mm/hugetlb.c:2173 isolate_migratepages_block+0xa12/0x5e20 mm/compaction.c:950 isolate_migratepages mm/compaction.c:2074 [inline] compact_zone+0x3020/0x47f0 mm/compaction.c:2530 compact_node+0x217/0x420 mm/compaction.c:2846 compact_nodes mm/compaction.c:2859 [inline] sysctl_compaction_handler+0x103/0x1b0 mm/compaction.c:2905 proc_sys_call_handler+0x551/0x8b0 fs/proc/proc_sysctl.c:595 call_write_iter include/linux/fs.h:2108 [inline] iter_file_splice_write+0xbd7/0x14e0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11e/0x220 fs/splice.c:1164 splice_direct_to_actor+0x58e/0xc90 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x28c/0x3e0 fs/splice.c:1233 do_sendfile+0x56d/0xdc0 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1356 [inline] __se_sys_sendfile64+0x100/0x1e0 fs/read_write.c:1348 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f173287dde9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f17335a70c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f17329abf80 RCX: 00007f173287dde9 RDX: 00000000200000c0 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f17328ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000009 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f17329abf80 R15: 00007f1732acfa48 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_flags+0x11a/0x1b0 include/linux/page-flags.h:314 Code: 48 89 d8 48 25 ff 0f 00 00 74 21 e8 80 19 a1 ff e9 52 ff ff ff e8 76 19 a1 ff 48 89 df 48 c7 c6 c0 49 b6 8b e8 67 de e9 ff 90 <0f> 0b 48 89 df be 08 00 00 00 e8 e7 6a 04 00 48 89 d8 48 c1 e8 03 RSP: 0018:ffffc9000ba46f68 EFLAGS: 00010246 RAX: d0711a3fca16ac00 RBX: ffffea0000485400 RCX: ffffc9000ba46d03 RDX: 0000000000000001 RSI: ffffffff8baad360 RDI: ffffffff8bfed360 RBP: 0000000000000000 R08: ffffffff8f872cef R09: 1ffffffff1f0e59d R10: dffffc0000000000 R11: fffffbfff1f0e59e R12: 1ffffd4000090a80 R13: 0000000000000000 R14: 0000000000000001 R15: dffffc0000000000 FS: 00007f17335a76c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f80a6d5e070 CR3: 00000000799a4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400