From: patchwork-bot+bpf@kernel.org
To: Stanislav Fomichev <sdf@google.com>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next] bpf: deref map in BPF_PROG_BIND_MAP when it's already used
Date: Sat, 03 Oct 2020 02:30:03 +0000 [thread overview]
Message-ID: <160169220350.9428.1442474322300183574.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20201003002544.3601440-1-sdf@google.com>
Hello:
This patch was applied to bpf/bpf-next.git (refs/heads/master):
On Fri, 2 Oct 2020 17:25:44 -0700 you wrote:
> We are missing a deref for the case when we are doing BPF_PROG_BIND_MAP
> on a map that's being already held by the program.
> There is 'if (ret) bpf_map_put(map)' below which doesn't trigger
> because we don't consider this an error.
> Let's add missing bpf_map_put() for this specific condition.
>
> Fixes: ef15314aa5de ("bpf: Add BPF_PROG_BIND_MAP syscall")
> Reported-by: Alexei Starovoitov <ast@kernel.org>
> Signed-off-by: Stanislav Fomichev <sdf@google.com>
>
> [...]
Here is the summary with links:
- [bpf-next] bpf: deref map in BPF_PROG_BIND_MAP when it's already used
https://git.kernel.org/bpf/bpf-next/c/1028ae406999
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2020-10-03 2:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-03 0:25 [PATCH bpf-next] bpf: deref map in BPF_PROG_BIND_MAP when it's already used Stanislav Fomichev
2020-10-03 0:35 ` Andrii Nakryiko
2020-10-03 2:25 ` Alexei Starovoitov
2020-10-03 2:30 ` patchwork-bot+bpf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160169220350.9428.1442474322300183574.git-patchwork-notify@kernel.org \
--to=patchwork-bot+bpf@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=sdf@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox