bisecting fixing commit since 645ff1e8e704c4f33ab1fcd3c87f95cb9b6d7144 building syzkaller on 66fcd29b60c566b3d7b7cc75550a4b96e355164d testing commit 645ff1e8e704c4f33ab1fcd3c87f95cb9b6d7144 with gcc (GCC) 8.1.0 all runs: crashed: WARNING in bpf_jit_free testing current HEAD e67095fd2f727c35e510d831c588696f2138a1bb testing commit e67095fd2f727c35e510d831c588696f2138a1bb with gcc (GCC) 8.1.0 all runs: OK # git bisect start e67095fd2f727c35e510d831c588696f2138a1bb 645ff1e8e704c4f33ab1fcd3c87f95cb9b6d7144 Bisecting: 23705 revisions left to test after this (roughly 15 steps) [ef75bd71c5d31dc17ae41ff8bec92630a3037d69] Merge tag 'gfs2-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 testing commit ef75bd71c5d31dc17ae41ff8bec92630a3037d69 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad ef75bd71c5d31dc17ae41ff8bec92630a3037d69 Bisecting: 11817 revisions left to test after this (roughly 14 steps) [80201fe175cbf7f3e372f53eba0a881a702ad926] Merge tag 'for-5.1/block-20190302' of git://git.kernel.dk/linux-block testing commit 80201fe175cbf7f3e372f53eba0a881a702ad926 with gcc (GCC) 8.1.0 all runs: crashed: WARNING in bpf_jit_free # git bisect good 80201fe175cbf7f3e372f53eba0a881a702ad926 Bisecting: 5945 revisions left to test after this (roughly 13 steps) [dd4e5d6106b2380e2c1238406d26df8b2fe1c42c] Merge tag 'arm64-mmiowb' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux testing commit dd4e5d6106b2380e2c1238406d26df8b2fe1c42c with gcc (GCC) 8.1.0 all runs: crashed: WARNING in bpf_jit_free # git bisect good dd4e5d6106b2380e2c1238406d26df8b2fe1c42c Bisecting: 3026 revisions left to test after this (roughly 12 steps) [82efe439599439a5e1e225ce5740e6cfb777a7dd] Merge tag 'devicetree-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux testing commit 82efe439599439a5e1e225ce5740e6cfb777a7dd with gcc (GCC) 8.1.0 all runs: crashed: WARNING in bpf_jit_free # git bisect good 82efe439599439a5e1e225ce5740e6cfb777a7dd Bisecting: 1527 revisions left to test after this (roughly 11 steps) [18af9626d9f9ecc4d83951895fc6afa825d70bbe] Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue testing commit 18af9626d9f9ecc4d83951895fc6afa825d70bbe with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 18af9626d9f9ecc4d83951895fc6afa825d70bbe Bisecting: 748 revisions left to test after this (roughly 10 steps) [93144b0ecde584e1e480abf45429ef47a5e02ac9] Merge branch 'mlxsw-Add-neighbour-offload-indication' testing commit 93144b0ecde584e1e480abf45429ef47a5e02ac9 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 93144b0ecde584e1e480abf45429ef47a5e02ac9 Bisecting: 374 revisions left to test after this (roughly 9 steps) [f79c957a0b537d6871a8aa195d5b5bcc7e480957] drivers: net: sfc: use netdev_xmit_more helper testing commit f79c957a0b537d6871a8aa195d5b5bcc7e480957 with gcc (GCC) 8.1.0 all runs: crashed: WARNING in bpf_jit_free # git bisect good f79c957a0b537d6871a8aa195d5b5bcc7e480957 Bisecting: 187 revisions left to test after this (roughly 8 steps) [7d1df2c978dc472bc514f92c9ecb1db33503b298] netdevsim: remove nsim_dellink() implementation testing commit 7d1df2c978dc472bc514f92c9ecb1db33503b298 with gcc (GCC) 8.1.0 all runs: crashed: WARNING in bpf_jit_free # git bisect good 7d1df2c978dc472bc514f92c9ecb1db33503b298 Bisecting: 87 revisions left to test after this (roughly 7 steps) [bb23581b9b38703257acabd520aa5ebf1db008af] Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit bb23581b9b38703257acabd520aa5ebf1db008af with gcc (GCC) 8.1.0 all runs: OK # git bisect bad bb23581b9b38703257acabd520aa5ebf1db008af Bisecting: 49 revisions left to test after this (roughly 6 steps) [c861168b7c219838637aaa8c3acc81707aa495f6] bpf, selftest: add test cases for BTF Var and DataSec testing commit c861168b7c219838637aaa8c3acc81707aa495f6 with gcc (GCC) 8.1.0 all runs: OK # git bisect bad c861168b7c219838637aaa8c3acc81707aa495f6 Bisecting: 24 revisions left to test after this (roughly 5 steps) [636e78b1cdb40b77a79b143dbd9d94847b360efa] samples/bpf: fix build with new clang testing commit 636e78b1cdb40b77a79b143dbd9d94847b360efa with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 636e78b1cdb40b77a79b143dbd9d94847b360efa Bisecting: 12 revisions left to test after this (roughly 4 steps) [06ee7115b0d1742de745ad143fb5e06d77d27fba] bpf: add verifier stats and log_level bit 2 testing commit 06ee7115b0d1742de745ad143fb5e06d77d27fba with gcc (GCC) 8.1.0 all runs: OK # git bisect bad 06ee7115b0d1742de745ad143fb5e06d77d27fba Bisecting: 5 revisions left to test after this (roughly 3 steps) [6b7b6995c43e17f994c51c107740daedd948255a] selftests: bpf: tests.h should depend on .c files, not the output testing commit 6b7b6995c43e17f994c51c107740daedd948255a with gcc (GCC) 8.1.0 all runs: crashed: WARNING in bpf_jit_free # git bisect good 6b7b6995c43e17f994c51c107740daedd948255a Bisecting: 2 revisions left to test after this (roughly 2 steps) [7596aa3ea8a0b478a8a5c6207e69cc7fcc035d45] selftests: bpf: remove duplicate .flags initialization in ctx_skb.c testing commit 7596aa3ea8a0b478a8a5c6207e69cc7fcc035d45 with gcc (GCC) 8.1.0 run #0: crashed: WARNING in bpf_jit_free run #1: crashed: WARNING in bpf_jit_free run #2: crashed: WARNING in bpf_jit_free run #3: crashed: WARNING in bpf_jit_free run #4: crashed: WARNING in bpf_jit_free run #5: crashed: WARNING in bpf_jit_free run #6: crashed: WARNING in bpf_jit_free run #7: crashed: WARNING in bpf_jit_free run #8: crashed: WARNING in bpf_jit_free run #9: OK # git bisect good 7596aa3ea8a0b478a8a5c6207e69cc7fcc035d45 Bisecting: 0 revisions left to test after this (roughly 1 step) [e83b9f55448afce3fe1abcd1d10db9584f8042a6] kbuild: add ability to generate BTF type info for vmlinux testing commit e83b9f55448afce3fe1abcd1d10db9584f8042a6 with gcc (GCC) 8.1.0 run #0: crashed: WARNING in bpf_jit_free run #1: crashed: WARNING in bpf_jit_free run #2: crashed: WARNING in bpf_jit_free run #3: crashed: WARNING in bpf_jit_free run #4: crashed: WARNING in bpf_jit_free run #5: crashed: WARNING in bpf_jit_free run #6: crashed: WARNING in bpf_jit_free run #7: crashed: WARNING in bpf_jit_free run #8: crashed: WARNING in bpf_jit_free run #9: OK # git bisect good e83b9f55448afce3fe1abcd1d10db9584f8042a6 06ee7115b0d1742de745ad143fb5e06d77d27fba is the first bad commit commit 06ee7115b0d1742de745ad143fb5e06d77d27fba Author: Alexei Starovoitov Date: Mon Apr 1 21:27:40 2019 -0700 bpf: add verifier stats and log_level bit 2 In order to understand the verifier bottlenecks add various stats and extend log_level: log_level 1 and 2 are kept as-is: bit 0 - level=1 - print every insn and verifier state at branch points bit 1 - level=2 - print every insn and verifier state at every insn bit 2 - level=4 - print verifier error and stats at the end of verification When verifier rejects the program the libbpf is trying to load the program twice. Once with log_level=0 (no messages, only error code is reported to user space) and second time with log_level=1 to tell the user why the verifier rejected it. With introduction of bit 2 - level=4 the libbpf can choose to always use that level and load programs once, since the verification speed is not affected and in case of error the verbose message will be available. Note that the verifier stats are not part of uapi just like all other verbose messages. They're expected to change in the future. Signed-off-by: Alexei Starovoitov Signed-off-by: Daniel Borkmann :040000 040000 eff46b240123e35e2d5b1867b3914bcfcc5adb05 e2d873d4a76092cab143a4421612c65dd8d31a7a M include :040000 040000 c53b13b07537123560961f51fd16ac187d9428e3 f5ece6b98932a4b081954d6ffc9c79da4a9cec0e M kernel revisions tested: 17, total time: 4h25m16.477974237s (build: 1h36m9.732581732s, test: 2h43m35.75651055s) first good commit: 06ee7115b0d1742de745ad143fb5e06d77d27fba bpf: add verifier stats and log_level bit 2 cc: ["ast@kernel.org" "bpf@vger.kernel.org" "daniel@iogearbox.net" "kafai@fb.com" "linux-kernel@vger.kernel.org" "netdev@vger.kernel.org" "songliubraving@fb.com" "yhs@fb.com"]