diff options
author | Andrii Nakryiko <[email protected]> | 2020-03-09 15:27:55 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-03-09 19:56:48 -0700 |
commit | 62039c30c19dcab96621e074aeeb90da7100def7 (patch) | |
tree | 7eaf14dc8ca1e1c1751eb54448f63f7ad35bc002 /scripts/gdb/linux/timerlist.py | |
parent | 93e5fbb18cec70b3b5c614f67b65388829113bdd (diff) |
bpf: Initialize storage pointers to NULL to prevent freeing garbage pointer
Local storage array isn't initialized, so if cgroup storage allocation fails
for BPF_CGROUP_STORAGE_SHARED, error handling code will attempt to free
uninitialized pointer for BPF_CGROUP_STORAGE_PERCPU storage type. Avoid this
by always initializing storage pointers to NULLs.
Fixes: 8bad74f9840f ("bpf: extend cgroup bpf core to allow multiple cgroup storage types")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions