bisecting fixing commit since 8bac50406cca10a219aa899243d49c57ddaf7c5b building syzkaller on dd56146d2611f7de0fbb7d8db6c016d3dcdc6371 testing commit 8bac50406cca10a219aa899243d49c57ddaf7c5b with gcc (GCC) 8.1.0 kernel signature: ce4cf76a7f702a45bcc140980f0d387520bcaa6f3a873b9c66f9ce2d1aaadc71 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 corrupted run #8: crashed: WARNING in bpf_int_jit_compile run #9: crashed: WARNING in bpf_int_jit_compile testing current HEAD 050272a0423e68207fd2367831ae610680129062 testing commit 050272a0423e68207fd2367831ae610680129062 with gcc (GCC) 8.1.0 kernel signature: 8217f69ce2c5103cbbc3d142fbd324cbd193b305e5ae3b07175e82f4767a19b3 run #0: crashed: WARNING in bpf_int_jit_compile run #1: crashed: WARNING in bpf_prog_select_runtime run #2: crashed: WARNING in bpf_int_jit_compile run #3: crashed: WARNING in bpf_int_jit_compile run #4: crashed: WARNING in bpf_prog_select_runtime 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_int_jit_compile run #9: crashed: WARNING in bpf_int_jit_compile revisions tested: 2, total time: 24m31.035141317s (build: 16m55.627079625s, test: 6m12.096093819s) the crash still happens on HEAD commit msg: Linux 4.14.177 crash: WARNING in bpf_int_jit_compile RBP: 000000000075bf20 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000004 R13: 0000000000000a17 R14: 00000000004cb794 R15: 0000000000000013 ------------[ cut here ]------------ IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready WARNING: CPU: 1 PID: 7694 at include/linux/filter.h:628 bpf_int_jit_compile+0x55b/0x603 arch/x86/net/bpf_jit_comp.c:1204 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 7694 Comm: syz-executor.3 Not tainted 4.14.177-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 0 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963 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:1192 RSP: 0018:ffff88809514f9c0 EFLAGS: 00010282 RAX: 00000000fffffff4 RBX: ffffc900019b0000 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffff8880a4bb4d08 RDI: ffffffff89a6bbc0 RBP: ffff88809514fac0 R08: ffff8880a4bb4d28 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809514fa98 R13: 0000000000000065 R14: ffff8880a4bb4480 R15: 0000000000000065 Node 0 bpf_prog_select_runtime+0xe1/0x5e0 kernel/bpf/core.c:1455 Normal free:0kB min:0kB low:0kB high:0kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:786432kB managed:0kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB 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 lowmem_reserve[]: 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 0 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45b349 RSP: 002b:00007f58b59c0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f58b59c16d4 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..