Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpf: Fix remap of arena. #7208

Closed
wants to merge 2 commits into from

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: bpf: Fix remap of arena.
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=862302

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 143492f
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=862302
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=862302 expired. Closing PR.

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 143492f
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=862693
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: bfbcb2c
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=862693
version: 2

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@intel.com>
Closes: https://lore.kernel.org/bpf/Zmuw29IhgyPNKnIM@xpf.sh.intel.com/
Fixes: 3174603 ("bpf: Introduce bpf_arena.")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=862693 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/862302=>bpf branch June 18, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
0 participants