From: patchwork-bot+netdevbpf@kernel.org
To: Chris Mason <mason@kernel.org>
Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com,
martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev,
jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev,
juntong.deng@outlook.com, rhkrqnwk98@gmail.com
Subject: Re: [PATCH bpf] bpf: Read the pid ns once in bpf_task_from_vpid()
Date: Fri, 04 Dec 2026 02:30:10 +0000 [thread overview]
Message-ID: <179635141002.775403.9951391981556170724.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261203201328.28379-1-mason@kernel.org>
Hello:
This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Thu, 3 Dec 2026 15:13:28 -0500 you wrote:
> bpf_task_from_vpid() dereferences a NULL pid namespace if another CPU
> reaps current during the call.
>
> Commit 50dff0061552 ("bpf: Fix NULL pointer dereference in
> bpf_task_from_vpid()") made the kfunc return early if current has no pid
> namespace. But find_task_by_vpid() reads current's namespace again. A
> program can run on a task that is between exit_notify() and its last
> context switch, and release_task() does not wait for that switch:
>
> [...]
Here is the summary with links:
- [bpf] bpf: Read the pid ns once in bpf_task_from_vpid()
https://git.kernel.org/bpf/bpf/c/22d31f270ef6
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:[~2026-12-04 2:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 20:13 [PATCH bpf] bpf: Read the pid ns once in bpf_task_from_vpid() Chris Mason
2026-12-04 2:30 ` patchwork-bot+netdevbpf [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=179635141002.775403.9951391981556170724.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=ihor.solodrai@linux.dev \
--cc=jolsa@kernel.org \
--cc=juntong.deng@outlook.com \
--cc=martin.lau@linux.dev \
--cc=mason@kernel.org \
--cc=memxor@gmail.com \
--cc=rhkrqnwk98@gmail.com \
--cc=song@kernel.org \
--cc=yonghong.song@linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.