linux/tools/perf/bench
longlong yan 2d3135cded perf bench numa: Add NULL check after calloc()
Two calloc() calls in the numa benchmark lack NULL return checks,
leading to potential NULL pointer dereferences on allocation failure:

1. worker_process(): the allocated `pthreads` array is used in the
   following for-loop via pthreads[t] without checking for NULL.

2. __bench_numa(): the allocated `pids` array is used in the following
   for-loop via pids[i] without checking for NULL.

Add BUG_ON() checks after each calloc(), consistent with the existing
NULL check style used elsewhere in the same file (e.g., node_present
and nodes allocations).

Signed-off-by: longlong yan <yanlonglong@kylinos.cn>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-09-25 17:02:31 +02:00
..
bpf_skel
bench.h
breakpoint.c
Build
epoll-ctl.c
epoll-wait.c
evlist-open-close.c
find-bit-bench.c
futex-hash.c
futex-lock-pi.c
futex-requeue.c
futex-wake-parallel.c
futex-wake.c
futex.c
futex.h perf bench futex: Define SYS_futex on 32-bit arches with 64-bit time_t 2026-09-08 17:50:39 -03:00
inject-buildid.c
kallsyms-parse.c
mem-functions.c
mem-memcpy-arch.h
mem-memcpy-x86-64-asm-def.h
mem-memcpy-x86-64-asm.S
mem-memset-arch.h
mem-memset-x86-64-asm-def.h
mem-memset-x86-64-asm.S
numa.c perf bench numa: Add NULL check after calloc() 2026-09-25 17:02:31 +02:00
pmu-scan.c
sched-messaging.c perf bench messaging: Fix the formatting issue when printing. 2026-09-17 12:27:34 -03:00
sched-pipe.c
sched-seccomp-notify.c
synthesize.c
syscall.c
uprobe.c