bisecting fixing commit since 8bac50406cca10a219aa899243d49c57ddaf7c5b building syzkaller on dd56146d2611f7de0fbb7d8db6c016d3dcdc6371 testing commit 8bac50406cca10a219aa899243d49c57ddaf7c5b with gcc (GCC) 8.1.0 kernel signature: 699a2570f580fec7d303b1a9dea832973767f828e324745eea543fff11f825f4 run #0: crashed: WARNING in bpf_int_jit_compile run #1: crashed: WARNING in bpf_int_jit_compile run #2: crashed: WARNING in bpf_int_jit_compile run #3: crashed: WARNING in bpf_int_jit_compile run #4: crashed: WARNING in bpf_int_jit_compile run #5: crashed: WARNING in bpf_int_jit_compile run #6: crashed: WARNING in bpf_int_jit_compile run #7: crashed: WARNING in bpf_int_jit_compile run #8: crashed: WARNING in bpf_prog_select_runtime run #9: crashed: WARNING in bpf_int_jit_compile testing current HEAD a41ba30d9df20fe141c92aacbb56b6b077f19716 testing commit a41ba30d9df20fe141c92aacbb56b6b077f19716 with gcc (GCC) 8.1.0 kernel signature: 471cb65f33f6e7f65bff8ff3d63506d31ebbb309b130f17c29032003ad255e98 run #0: crashed: WARNING in bpf_int_jit_compile run #1: crashed: WARNING in bpf_int_jit_compile run #2: crashed: WARNING in bpf_int_jit_compile run #3: crashed: WARNING in bpf_int_jit_compile run #4: crashed: WARNING in bpf_int_jit_compile run #5: crashed: WARNING in bpf_int_jit_compile run #6: crashed: WARNING in bpf_prog_select_runtime run #7: crashed: WARNING in bpf_int_jit_compile run #8: crashed: WARNING in bpf_int_jit_compile run #9: crashed: WARNING in bpf_int_jit_compile revisions tested: 2, total time: 23m52.035005743s (build: 16m17.222472109s, test: 6m28.911407651s) the crash still happens on HEAD commit msg: Linux 4.14.181 crash: WARNING in bpf_int_jit_compile RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000004 R13: 0000000000000a17 R14: 00000000004cb794 R15: 0000000000000013 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7670 at include/linux/filter.h:628 bpf_int_jit_compile+0x55b/0x603 arch/x86/net/bpf_jit_comp.c:1216 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 7670 Comm: syz-executor.4 Not tainted 4.14.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 panic+0x1b0/0x358 kernel/panic.c:183 __warn.cold.8+0x25/0x2c kernel/panic.c:547 report_bug+0x1a4/0x1f3 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:177 [inline] do_error_trap+0x1bd/0x310 arch/x86/kernel/traps.c:295 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964 RIP: 0010:bpf_jit_binary_lock_ro include/linux/filter.h:628 [inline] RIP: 0010:bpf_int_jit_compile+0x55b/0x603 arch/x86/net/bpf_jit_comp.c:1204 RSP: 0018:ffff888081e9f9c0 EFLAGS: 00010282 RAX: 00000000fffffff4 RBX: ffffc90005a66000 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffff88808a756908 RDI: ffffffff89a6cbc0 RBP: ffff888081e9fac0 R08: ffff88808a756928 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888081e9fa98 R13: 0000000000000065 R14: ffff88808a756080 R15: 0000000000000065 bpf_prog_select_runtime+0xe1/0x5e0 kernel/bpf/core.c:1455 bpf_migrate_filter net/core/filter.c:1060 [inline] bpf_prepare_filter+0x790/0xfe0 net/core/filter.c:1108 __get_filter+0x17e/0x220 net/core/filter.c:1301 sk_attach_filter+0x13/0x60 net/core/filter.c:1316 sock_setsockopt+0x1067/0x1870 net/core/sock.c:927 SYSC_setsockopt net/socket.c:1861 [inline] SyS_setsockopt+0x1bc/0x1f0 net/socket.c:1844 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45b349 RSP: 002b:00007f556f3e1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f556f3e26d4 RCX: 000000000045b349 RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000004 R13: 0000000000000a17 R14: 00000000004cb794 R15: 0000000000000013 Kernel Offset: disabled Rebooting in 86400 seconds..