On 6/17/24 13:18, Alexei Starovoitov wrote:
From: Alexei Starovoitov <ast@xxxxxxxxxx> 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. Reported-by: Pengfei Xu <pengfei.xu@xxxxxxxxx> Closes: https://lore.kernel.org/bpf/Zmuw29IhgyPNKnIM@xxxxxxxxxxxxxxxx/ Fixes: 317460317a02 ("bpf: Introduce bpf_arena.") Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx>
Reviewed-by: Barret Rhoden <brho@xxxxxxxxxx>