Messages in this thread | | | Subject | Re: [PATCH v1] selftests/xsk: Avoid use-after-free on ctx | From | patchwork-bot+netdevbpf@kernel ... | Date | Fri, 02 Sep 2022 14:00:15 +0000 |
| |
Hello:
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <daniel@iogearbox.net>:
On Thu, 1 Sep 2022 13:26:45 -0700 you wrote: > The put lowers the reference count to 0 and frees ctx, reading it > afterwards is invalid. Move the put after the uses and determine the > last use by the reference count being 1. > > Fixes: 39e940d4abfa ("selftests/xsk: Destroy BPF resources only when ctx refcount drops to 0") > Signed-off-by: Ian Rogers <irogers@google.com> > > [...]
Here is the summary with links: - [v1] selftests/xsk: Avoid use-after-free on ctx https://git.kernel.org/bpf/bpf-next/c/af515a5587b8
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |