mirror of
https://github.com/torvalds/linux.git
synced 2026-11-12 20:54:48 +01:00
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> |
||
|---|---|---|
| .. | ||
| 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 | ||
| 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 | ||
| pmu-scan.c | ||
| sched-messaging.c | ||
| sched-pipe.c | ||
| sched-seccomp-notify.c | ||
| synthesize.c | ||
| syscall.c | ||
| uprobe.c | ||