On 8/1/25 5:23 PM, Eduard Zingerman wrote: > env->scc_info array contains references to bpf_scc_info objects > allocated lazily in verifier.c:scc_visit_alloc(). > env->scc_cnt was supposed to track env->scc_info array size > in order to free referenced objects in verifier.c:free_states(). > Initialization of env->scc_cnt was omitted in > verifier.c:compute_scc(), which is fixed by this commit. > > To reproduce the bug: > - build with CONFIG_DEBUG_KMEMLEAK > - boot and load bpf program with loops, e.g.: > ./veristat -q pyperf180.bpf.o > - initiate memleak scan and check results: > echo scan > /sys/kernel/debug/kmemleak > cat /sys/kernel/debug/kmemleak Thanks for fixing this. Even though it's already applied, I did test it: Tested-by: Jens Axboe <axboe@xxxxxxxxx> -- Jens Axboe