diff options
author | Stanislav Fomichev <[email protected]> | 2019-01-16 14:03:16 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-01-17 16:42:35 +0100 |
commit | 4af396ae4836c4ecab61e975b8e61270c551894d (patch) | |
tree | 3ea744486f9d9c3582f038e5a04d0aac47812e3d /lib/memory-notifier-error-inject.c | |
parent | 0b698005a9d11c0e91141ec11a2c4918a129f703 (diff) |
bpf: zero out build_id for BPF_STACK_BUILD_ID_IP
When returning BPF_STACK_BUILD_ID_IP from stack_map_get_build_id_offset,
make sure that build_id field is empty. Since we are using percpu
free list, there is a possibility that we might reuse some previous
bpf_stack_build_id with non-zero build_id.
Fixes: 615755a77b24 ("bpf: extend stackmap to save binary_build_id+offset instead of address")
Acked-by: Song Liu <[email protected]>
Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions