tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1338 inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:846 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0xd5/0x180 net/socket.c:745 sock_write_iter+0x29b/0x3d0 net/socket.c:1158 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x650/0xe40 fs/read_write.c:584 ------------[ cut here ]------------ kernel BUG at include/linux/page-flags.h:314! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 42 Comm: kcompactd0 Not tainted 6.6.0-rc7-syzkaller-00018-gd88520ad73b7 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:folio_flags+0x1b7/0x1f0 include/linux/page-flags.h:314 Code: 06 41 83 e4 01 44 89 e6 e8 e6 55 b1 ff 45 84 e4 0f 85 c9 fe ff ff e8 a8 5a b1 ff 48 c7 c6 e0 2f 9a 8a 48 89 ef e8 19 24 ef ff <0f> 0b e8 42 6e 06 00 e9 6c fe ff ff 48 89 ef e8 35 6e 06 00 eb b7 RSP: 0018:ffffc90000bc78a8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff8880137c0bc0 RSI: ffffffff81d57dd7 RDI: ffffffff8ae912e0 RBP: ffffea000184ce80 R08: 0000000000000000 R09: fffffbfff1d96c2a R10: ffffffff8ecb6157 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffea000184ce80 R15: 000000000006133a FS: 0000000000000000(0000) GS:ffff88806b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f435000 CR3: 0000000060500000 CR4: 0000000000350ee0 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 kcompactd_do_work+0x340/0x6e0 mm/compaction.c:2979 kcompactd+0xa72/0xd80 mm/compaction.c:3078 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 e6 55 b1 ff 45 84 e4 0f 85 c9 fe ff ff e8 a8 5a b1 ff 48 c7 c6 e0 2f 9a 8a 48 89 ef e8 19 24 ef ff <0f> 0b e8 42 6e 06 00 e9 6c fe ff ff 48 89 ef e8 35 6e 06 00 eb b7 RSP: 0018:ffffc90000bc78a8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff8880137c0bc0 RSI: ffffffff81d57dd7 RDI: ffffffff8ae912e0 RBP: ffffea000184ce80 R08: 0000000000000000 R09: fffffbfff1d96c2a R10: ffffffff8ecb6157 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffea000184ce80 R15: 000000000006133a FS: 0000000000000000(0000) GS:ffff88806b600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000021000000 CR3: 000000000c976000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400