ci starts bisection 2022-11-04 19:08:57.874107351 +0000 UTC m=+84463.424436189 bisecting fixing commit since 200e340f2196d7fd427a5810d06e893b932f145a building syzkaller on a6201f1167d158d5a0538c3d29bc3b2bebb0a4fd ensuring issue is reproducible on original commit 200e340f2196d7fd427a5810d06e893b932f145a testing commit 200e340f2196d7fd427a5810d06e893b932f145a gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 93d0e3dabfd4e0ace599417e52c40b418722357a2719c3fa8ab42c93930cb361 all runs: crashed: WARNING in check_map_prog_compatibility testing current HEAD ee6050c8af96bba2f81e8b0793a1fc2f998fcd20 testing commit ee6050c8af96bba2f81e8b0793a1fc2f998fcd20 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3f903d6f1bd69fe3fa4b72533256627c86c4ce347efff25661b8e6a85903a838 all runs: OK # git bisect start ee6050c8af96bba2f81e8b0793a1fc2f998fcd20 200e340f2196d7fd427a5810d06e893b932f145a Bisecting: 13512 revisions left to test after this (roughly 14 steps) [9724343e4907ea1c0280b90ee2f4939f5f1de01e] Merge branch 'mptcp-allow-privileged-operations-from-user-ns-cleanup' testing commit 9724343e4907ea1c0280b90ee2f4939f5f1de01e gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 727b3989551e813dce706f239bcdec2581075b1d969facdd7ea29826a217917c all runs: OK # git bisect bad 9724343e4907ea1c0280b90ee2f4939f5f1de01e Bisecting: 6692 revisions left to test after this (roughly 13 steps) [eff0cb3d91c06acbb957be1134a07afa2c4978e3] Merge tag 'pci-v5.20-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci testing commit eff0cb3d91c06acbb957be1134a07afa2c4978e3 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1c8a8aaae063d7e8e65ef5d00c7a846032109ed8b8e6d295b63aefb6321b9219 all runs: basic kernel testing failed: WARNING in mgmt_index_removed # git bisect skip eff0cb3d91c06acbb957be1134a07afa2c4978e3 Bisecting: 6692 revisions left to test after this (roughly 13 steps) [f52f2faee581562032be32318b402ea53f2240e1] net/mlx5e: Introduce flow steering API testing commit f52f2faee581562032be32318b402ea53f2240e1 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6978b414a189a3efb3dd1922031f3ce42c705e60f4cd7cbd8eb1feea9ee04249 all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good f52f2faee581562032be32318b402ea53f2240e1 Bisecting: 876 revisions left to test after this (roughly 10 steps) [1e8e515edd6dbe15b86003d846fee005c12c0685] Merge tag 'drm-fixes-2022-09-02' of git://anongit.freedesktop.org/drm/drm testing commit 1e8e515edd6dbe15b86003d846fee005c12c0685 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d5780a0920fd108978b8edff0fa591bba08bc99e7ee719c243302c767570054a all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good 1e8e515edd6dbe15b86003d846fee005c12c0685 Bisecting: 471 revisions left to test after this (roughly 9 steps) [04cbaa6c08e3974760c7ac5a70256d736444f6f0] ice: Simplify memory allocation in ice_sched_init_port() testing commit 04cbaa6c08e3974760c7ac5a70256d736444f6f0 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d75f730e186cff1394aeb3c71807e66854ae8c09080f6104180b04273be41d9e all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good 04cbaa6c08e3974760c7ac5a70256d736444f6f0 Bisecting: 230 revisions left to test after this (roughly 8 steps) [26b1224903b3fb66e8aa564868d0d57648c32b15] Merge tag 'net-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 26b1224903b3fb66e8aa564868d0d57648c32b15 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a9633a312e9e0706457aa0a4fc4f54e6bcae2a47db0186aaeb911cad3aa50a92 all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good 26b1224903b3fb66e8aa564868d0d57648c32b15 Bisecting: 115 revisions left to test after this (roughly 7 steps) [2786bcff28bd88955fc61adf9cb7370fbc182bad] Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit 2786bcff28bd88955fc61adf9cb7370fbc182bad gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e058652c0ba39cb3a04092c48c8dbe9675881a4c0dcd17a08b5a8829fc1ba33a all runs: OK # git bisect bad 2786bcff28bd88955fc61adf9cb7370fbc182bad Bisecting: 57 revisions left to test after this (roughly 6 steps) [197072945a708d62181895409effdfcda80c7798] selftest/bpf: Ensure no module loading in bpf_setsockopt(TCP_CONGESTION) testing commit 197072945a708d62181895409effdfcda80c7798 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c9543df27229b6af0f9a1d489ccba145fe341cd9b2f7aedb17d40adbe9d7fa42 all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good 197072945a708d62181895409effdfcda80c7798 Bisecting: 28 revisions left to test after this (roughly 5 steps) [1985320c54dd51ea45641af0c69087347965ff25] bpf: net: Avoid do_ip_getsockopt() taking sk lock when called from bpf testing commit 1985320c54dd51ea45641af0c69087347965ff25 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 051a2835229e9099feb1d95e03a5109d6c52342bf411eb919fd63625c9f9e86c all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good 1985320c54dd51ea45641af0c69087347965ff25 Bisecting: 14 revisions left to test after this (roughly 4 steps) [37521bffdd2d1efcb1dbdfd3ee89584c8943421c] selftests/bpf: Improve test coverage of test_maps testing commit 37521bffdd2d1efcb1dbdfd3ee89584c8943421c gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 98f4b12d1c4a627012e1444907854e1bbe30c652ba6533b3c3bca336822edea6 all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good 37521bffdd2d1efcb1dbdfd3ee89584c8943421c Bisecting: 7 revisions left to test after this (roughly 3 steps) [4ab67149f3c6e97c5c506a726f0ebdec38241679] bpf: Add percpu allocation support to bpf_mem_alloc. testing commit 4ab67149f3c6e97c5c506a726f0ebdec38241679 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9685503ac980900f7a6b5839063985b89df00341ddc9fadd1289f370ec8abe07 all runs: OK # git bisect bad 4ab67149f3c6e97c5c506a726f0ebdec38241679 Bisecting: 2 revisions left to test after this (roughly 2 steps) [0fd7c5d43339b783ee3301a05f925d1e52ac87c9] bpf: Optimize call_rcu in non-preallocated hash map. testing commit 0fd7c5d43339b783ee3301a05f925d1e52ac87c9 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 89eb6a1b836ae02325669421689818b1e134cefa7b5fa8c8a87b3e0ce6c9080f all runs: OK # git bisect bad 0fd7c5d43339b783ee3301a05f925d1e52ac87c9 Bisecting: 1 revision left to test after this (roughly 1 step) [34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8] bpf: Relax the requirement to use preallocated hash maps in tracing progs. testing commit 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8 gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: de61db6bb16068276de504c0637b60d4313f1f5f30c3ba3265f57e1148758e42 all runs: OK # git bisect bad 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8 Bisecting: 0 revisions left to test after this (roughly 0 steps) [89dc8d0c38e0df27e580876a1681a55c686a51ff] samples/bpf: Reduce syscall overhead in map_perf_test. testing commit 89dc8d0c38e0df27e580876a1681a55c686a51ff gcc compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 945f7a28ed0240606583a14bbf03ba731f159e2542725f660ec0ff693dd7f5a4 all runs: crashed: WARNING in check_map_prog_compatibility # git bisect good 89dc8d0c38e0df27e580876a1681a55c686a51ff 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8 is the first bad commit commit 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8 Author: Alexei Starovoitov Date: Fri Sep 2 14:10:47 2022 -0700 bpf: Relax the requirement to use preallocated hash maps in tracing progs. Since bpf hash map was converted to use bpf_mem_alloc it is safe to use from tracing programs and in RT kernels. But per-cpu hash map is still using dynamic allocation for per-cpu map values, hence keep the warning for this map type. In the future alloc_percpu_gfp can be front-end-ed with bpf_mem_cache and this restriction will be completely lifted. perf_event (NMI) bpf programs have to use preallocated hash maps, because free_htab_elem() is using call_rcu which might crash if re-entered. Sleepable bpf programs have to use preallocated hash maps, because life time of the map elements is not protected by rcu_read_lock/unlock. This restriction can be lifted in the future as well. Signed-off-by: Alexei Starovoitov Signed-off-by: Daniel Borkmann Acked-by: Kumar Kartikeya Dwivedi Acked-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20220902211058.60789-6-alexei.starovoitov@gmail.com kernel/bpf/verifier.c | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) culprit signature: de61db6bb16068276de504c0637b60d4313f1f5f30c3ba3265f57e1148758e42 parent signature: 945f7a28ed0240606583a14bbf03ba731f159e2542725f660ec0ff693dd7f5a4 revisions tested: 16, total time: 3h40m7.734855131s (build: 2h3m58.528730143s, test: 1h33m46.789794116s) first good commit: 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8 bpf: Relax the requirement to use preallocated hash maps in tracing progs. recipients (to): ["andrii@kernel.org" "ast@kernel.org" "daniel@iogearbox.net" "memxor@gmail.com"] recipients (cc): []