diff options
author | Alexei Starovoitov <[email protected]> | 2024-06-17 10:18:12 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2024-06-18 17:19:46 +0200 |
commit | b90d77e5fd784ada62ddd714d15ee2400c28e1cf (patch) | |
tree | 9586302ff2733e360769a93f8e73cf34744475c6 /tools/perf/scripts/python | |
parent | bfbcb2c9d2978a28e9f0a77100170dc14fcf7c79 (diff) |
bpf: Fix remap of arena.
The bpf arena logic didn't account for mremap operation. Add a refcnt for
multiple mmap events to prevent use-after-free in arena_vm_close.
Fixes: 317460317a02 ("bpf: Introduce bpf_arena.")
Reported-by: Pengfei Xu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Barret Rhoden <[email protected]>
Tested-by: Pengfei Xu <[email protected]>
Closes: https://lore.kernel.org/bpf/[email protected]
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions