------------[ cut here ]------------ kernel BUG at arch/x86/kernel/alternative.c:1027! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10356 Comm: dhcpcd Not tainted 5.18.0-rc3-syzkaller-01537-g20b87e7c29df #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__text_poke+0x343/0x8c0 arch/x86/kernel/alternative.c:1027 Code: c3 0f 86 2c fe ff ff 49 8d bc 24 00 10 00 00 e8 53 a7 8c 00 48 89 44 24 28 48 85 db 74 0c 48 83 7c 24 28 00 0f 85 1b fe ff ff <0f> 0b 48 b8 00 f0 ff ff ff ff 0f 00 49 21 c0 48 85 db 0f 85 c6 02 RSP: 0018:ffffc90002c1f918 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880244b8000 RSI: ffffffff81b81f03 RDI: 0000000000000003 RBP: 0000000000000340 R08: 0000000000000000 R09: ffffc90002c1f92f R10: ffffffff81b81ea1 R11: 0000000000000001 R12: ffffffffa0008080 R13: 0000000000000340 R14: 00000000000003c0 R15: 0000000000002000 FS: 00007f1fc2619740(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1fc2711310 CR3: 000000005c58c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: text_poke_copy+0x66/0xa0 arch/x86/kernel/alternative.c:1170 bpf_arch_text_copy+0x21/0x40 arch/x86/net/bpf_jit_comp.c:2459 bpf_jit_binary_pack_finalize+0x44/0x110 kernel/bpf/core.c:1140 bpf_int_jit_compile+0xa74/0x13e0 arch/x86/net/bpf_jit_comp.c:2415 bpf_prog_select_runtime+0x2da/0x4b0 kernel/bpf/core.c:2208 bpf_migrate_filter+0x2dc/0x380 net/core/filter.c:1294 bpf_prepare_filter net/core/filter.c:1342 [inline] bpf_prog_create_from_user+0x51b/0x660 net/core/filter.c:1436 seccomp_prepare_filter kernel/seccomp.c:668 [inline] seccomp_prepare_user_filter kernel/seccomp.c:705 [inline] seccomp_set_mode_filter kernel/seccomp.c:1833 [inline] do_seccomp+0x388/0x2890 kernel/seccomp.c:1953 prctl_set_seccomp+0x4a/0x70 kernel/seccomp.c:2006 __do_sys_prctl+0x301/0x13a0 kernel/sys.c:2424 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f1fc271032a Code: 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 9d 00 00 00 48 89 54 24 e0 48 89 4c 24 e8 4c 89 44 24 f0 c7 44 24 b8 08 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 8b 15 19 0b 0c 00 f7 RSP: 002b:00007fff260f1b08 EFLAGS: 00000246 ORIG_RAX: 000000000000009d RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1fc271032a RDX: 0000560d2e5f53d0 RSI: 0000000000000002 RDI: 0000000000000016 RBP: 0000560d2f341d70 R08: 0000000000000000 R09: 00007f1fc2815020 R10: 00007f1fc271032a R11: 0000000000000246 R12: 00007fff26111ee8 R13: 0000000000000004 R14: 00007fff26101ce0 R15: 0000000000004004 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__text_poke+0x343/0x8c0 arch/x86/kernel/alternative.c:1027 Code: c3 0f 86 2c fe ff ff 49 8d bc 24 00 10 00 00 e8 53 a7 8c 00 48 89 44 24 28 48 85 db 74 0c 48 83 7c 24 28 00 0f 85 1b fe ff ff <0f> 0b 48 b8 00 f0 ff ff ff ff 0f 00 49 21 c0 48 85 db 0f 85 c6 02 RSP: 0018:ffffc90002c1f918 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880244b8000 RSI: ffffffff81b81f03 RDI: 0000000000000003 RBP: 0000000000000340 R08: 0000000000000000 R09: ffffc90002c1f92f R10: ffffffff81b81ea1 R11: 0000000000000001 R12: ffffffffa0008080 R13: 0000000000000340 R14: 00000000000003c0 R15: 0000000000002000 FS: 00007f1fc2619740(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1fc2711310 CR3: 000000005c58c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400