diff options
author | Martin KaFai Lau <[email protected]> | 2020-11-11 16:19:19 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-11-11 18:14:49 -0800 |
commit | 09a3dac7b579e57e7ef2d875b9216c845ae8a0e5 (patch) | |
tree | 719cb5169f79d3effa678cf513a19fa10530fb54 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 8378788cfe746d6d7222ded06d400377a3fc93e5 (diff) |
bpf: Fix NULL dereference in bpf_task_storage
In bpf_pid_task_storage_update_elem(), it missed to
test the !task_storage_ptr(task) which then could trigger a NULL
pointer exception in bpf_local_storage_update().
Fixes: 4cf1bc1f1045 ("bpf: Implement task local storage")
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Tested-by: Roman Gushchin <[email protected]>
Acked-by: KP Singh <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions