ci starts bisection 2022-11-07 07:08:08.301929988 +0000 UTC m=+300413.852258827 bisecting fixing commit since 506357871c18e06565840d71c2ef9f818e19f460 building syzkaller on f30274687d34e8d50307008f4c9989eaef077696 ensuring issue is reproducible on original commit 506357871c18e06565840d71c2ef9f818e19f460 testing commit 506357871c18e06565840d71c2ef9f818e19f460 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8daef8a15f4cbc3e0ba5140004233f6c04d5912a7cd7b6901e80df2e38e462f7 all runs: crashed: WARNING in bpf_check testing current HEAD f0c4d9fc9cc9462659728d168387191387e903cc testing commit f0c4d9fc9cc9462659728d168387191387e903cc gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f35bdec0a51623b1d1a998bf344bcde6b889872ced8705a6d515d4fdb0da099e all runs: OK # git bisect start f0c4d9fc9cc9462659728d168387191387e903cc 506357871c18e06565840d71c2ef9f818e19f460 Bisecting: 7200 revisions left to test after this (roughly 13 steps) [76e45035348c247a70ed50eb29a9906657e4444f] Merge tag 'for-6.1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux testing commit 76e45035348c247a70ed50eb29a9906657e4444f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6208196edcf4d746d0e331bf7c50906a8e701af3e876a99f18c8d417a3746c25 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: exit status NUM run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad 76e45035348c247a70ed50eb29a9906657e4444f Bisecting: 3641 revisions left to test after this (roughly 12 steps) [b86406d42ae3c41ae0ce332ea24350829b88af51] Merge tag 'i2c-for-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux testing commit b86406d42ae3c41ae0ce332ea24350829b88af51 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3d432fb537feeeda3ca71e16628803a2b40c244a118b85d2f6f5c6744ff6ffaa all runs: OK # git bisect bad b86406d42ae3c41ae0ce332ea24350829b88af51 Bisecting: 1836 revisions left to test after this (roughly 11 steps) [510bbf82f8dc36804114873d30ed1d0c8533af81] net: cpmac: Add __init/__exit annotations to module init/exit funcs testing commit 510bbf82f8dc36804114873d30ed1d0c8533af81 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2b501440ab0bd3b89465c89509f1b5ab0c326c82919d34f68c92199607732172 all runs: OK # git bisect bad 510bbf82f8dc36804114873d30ed1d0c8533af81 Bisecting: 915 revisions left to test after this (roughly 10 steps) [42e53b447cf890b10b4872c967e9f81fd2b06067] Merge branch 'ice-l2tpv3-offload-support' testing commit 42e53b447cf890b10b4872c967e9f81fd2b06067 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 762f5ff6d9e465bad54587528e5280133f1be86444a6bcad2fc9a49a908d51a1 all runs: OK # git bisect bad 42e53b447cf890b10b4872c967e9f81fd2b06067 Bisecting: 465 revisions left to test after this (roughly 9 steps) [aa3fab0110580aaeb9422e73b031822990651552] Merge branch 'net_sched-redundant-resource-cleanups' testing commit aa3fab0110580aaeb9422e73b031822990651552 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a552fe14532ce58cee3bc8e716152a972841a02a775cde2620af62c6a6ebd205 all runs: crashed: WARNING in bpf_check # git bisect good aa3fab0110580aaeb9422e73b031822990651552 Bisecting: 232 revisions left to test after this (roughly 8 steps) [3a8b8ea6c7c298482e54c6abee006c400b7aa568] net: dsa: microchip: ksz9477: remove 0x033C and 0x033D addresses from regmap_access_tables testing commit 3a8b8ea6c7c298482e54c6abee006c400b7aa568 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c0815a08601300e4a0c633b4765958587b0135aabf6231e68c085215a65d825b all runs: OK # git bisect bad 3a8b8ea6c7c298482e54c6abee006c400b7aa568 Bisecting: 117 revisions left to test after this (roughly 7 steps) [03fdb11da92fde0bdc0b6e9c1c642b7414d49e8d] net: moxa: fix endianness-related issues from 'sparse' testing commit 03fdb11da92fde0bdc0b6e9c1c642b7414d49e8d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d8092336e11451a92c428e25e15a4127f952711b021b8d08d183754609aaca74 all runs: crashed: WARNING in bpf_check # git bisect good 03fdb11da92fde0bdc0b6e9c1c642b7414d49e8d Bisecting: 58 revisions left to test after this (roughly 6 steps) [66a7a92e4d0d091e79148a4c6ec15d1da65f4280] bpf: Propagate error from htab_lock_bucket() to userspace testing commit 66a7a92e4d0d091e79148a4c6ec15d1da65f4280 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9bbc97cedc8646e3176696745381beae496ab83f346eed61ea9a20a6715aa9e8 all runs: crashed: WARNING in bpf_check # git bisect good 66a7a92e4d0d091e79148a4c6ec15d1da65f4280 Bisecting: 29 revisions left to test after this (roughly 5 steps) [9c3f9707decd67e48fc600f6e4adcdab3fe0878d] net: Add a len argument to compat_ipv6_get_msfilter() testing commit 9c3f9707decd67e48fc600f6e4adcdab3fe0878d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f5efed36cbf191b22325eca789fb98a90d9dcce69534c0dab3871cfe7bb2b9f2 all runs: crashed: WARNING in bpf_check # git bisect good 9c3f9707decd67e48fc600f6e4adcdab3fe0878d Bisecting: 14 revisions left to test after this (roughly 4 steps) [86fe28f7692d96d20232af0fc6d7632d5cc89a01] bpf: Optimize element count in non-preallocated hash map. testing commit 86fe28f7692d96d20232af0fc6d7632d5cc89a01 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d0bf40379905d1f4d1fd211f120c2711048ca45bce924a17d77e8b5b7ca0c57f all runs: OK # git bisect bad 86fe28f7692d96d20232af0fc6d7632d5cc89a01 Bisecting: 7 revisions left to test after this (roughly 3 steps) [38566ec06f52250c4abaa7447aae676e0b881c46] bpf: Change bpf_getsockopt(SOL_IPV6) to reuse do_ipv6_getsockopt() testing commit 38566ec06f52250c4abaa7447aae676e0b881c46 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 72490382535b160c0dceb088f2d27bc293c3b3e7c2f3ac29b6da3bbce7110b5f run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: failed to write control pipe: write |NUM: broken pipe run #1: crashed: WARNING in bpf_check run #2: crashed: WARNING in bpf_check run #3: crashed: WARNING in bpf_check run #4: crashed: WARNING in bpf_check run #5: crashed: WARNING in bpf_check run #6: crashed: WARNING in bpf_check run #7: crashed: WARNING in bpf_check run #8: crashed: WARNING in bpf_check run #9: crashed: WARNING in bpf_check # git bisect good 38566ec06f52250c4abaa7447aae676e0b881c46 Bisecting: 3 revisions left to test after this (roughly 2 steps) [fba1a1c6c912b383f86bf5d4aea732dcad3ec420] bpf: Convert hash map to bpf_mem_alloc. testing commit fba1a1c6c912b383f86bf5d4aea732dcad3ec420 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c0666db3cb6bc1b2668df0d6ad7092b14a0688eae6c1dac84f94c842bfd4faf3 all runs: crashed: WARNING in bpf_check # git bisect good fba1a1c6c912b383f86bf5d4aea732dcad3ec420 Bisecting: 1 revision left to test after this (roughly 1 step) [89dc8d0c38e0df27e580876a1681a55c686a51ff] samples/bpf: Reduce syscall overhead in map_perf_test. testing commit 89dc8d0c38e0df27e580876a1681a55c686a51ff gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: aeb6a8954dda4f7a437b1f87d26e2981a987ff851d15d664d8470a6123d7a7ba all runs: crashed: WARNING in bpf_check # git bisect good 89dc8d0c38e0df27e580876a1681a55c686a51ff Bisecting: 0 revisions left to test after this (roughly 0 steps) [34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8] bpf: Relax the requirement to use preallocated hash maps in tracing progs. testing commit 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cc0c9545ceefe5ad47616f0b3943b927b6ce587ceaf66a0eb6f2f6cc9182fcfc all runs: OK # git bisect bad 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8 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: cc0c9545ceefe5ad47616f0b3943b927b6ce587ceaf66a0eb6f2f6cc9182fcfc parent signature: aeb6a8954dda4f7a437b1f87d26e2981a987ff851d15d664d8470a6123d7a7ba revisions tested: 16, total time: 3h39m22.072592152s (build: 1h50m35.454000575s, test: 1h46m24.31588764s) 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): []