From: patchwork-bot+netdevbpf@kernel.org
To: Xu Kuohai <xukuohai@huaweicloud.com>
Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org,
ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
martin.lau@linux.dev, eddyz87@gmail.com, memxor@gmail.com,
yonghong.song@linux.dev, mattbobrowski@google.com,
kpsingh@kernel.org, sdf@fomichev.me, zhuyifei@google.com
Subject: Re: [PATCH bpf-next 0/2] bpf: Fix setting retval to -EPERM for cgroup hooks not returning errno
Date: Sat, 13 Jun 2026 03:40:11 +0000 [thread overview]
Message-ID: <178132201113.1349961.7433371950134456676.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260610201724.733943-1-xukuohai@huaweicloud.com>
Hello:
This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Wed, 10 Jun 2026 20:17:22 +0000 you wrote:
> This series fixes the issue reported by sashiko in [1]. The issue is that,
> when a cgroup BPF program exits with 0, bpf_prog_run_array_cg() sets
> the hook return value to -EPERM if it is not a valid errno. This is
> correct for errno-based hooks, which return 0 on success and negative
> errno on failure, but wrong for void and boolean LSM hooks. Boolean
> LSM hooks should only return true or false, and void LSM hooks have
> no return value at all.
>
> [...]
Here is the summary with links:
- [bpf-next,1/2] bpf: Fix setting retval to -EPERM for cgroup hooks not returning errno
https://git.kernel.org/bpf/bpf-next/c/4c71303c8374
- [bpf-next,2/2] selftests/bpf: Add retval test for bool and errno LSM cgroup hooks
https://git.kernel.org/bpf/bpf-next/c/cec842377617
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-06-13 3:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 20:17 [PATCH bpf-next 0/2] bpf: Fix setting retval to -EPERM for cgroup hooks not returning errno Xu Kuohai
2026-06-10 20:17 ` [PATCH bpf-next 1/2] " Xu Kuohai
2026-06-10 12:45 ` sashiko-bot
2026-06-10 13:26 ` Xu Kuohai
2026-06-10 20:17 ` [PATCH bpf-next 2/2] selftests/bpf: Add retval test for bool and errno LSM cgroup hooks Xu Kuohai
2026-06-13 3:40 ` 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=178132201113.1349961.7433371950134456676.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=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=mattbobrowski@google.com \
--cc=memxor@gmail.com \
--cc=sdf@fomichev.me \
--cc=xukuohai@huaweicloud.com \
--cc=yonghong.song@linux.dev \
--cc=zhuyifei@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