Re: [PATCH bpf-next] bpf: sched_ext: Mark ops argument container pointer fields as trusted
From: patchwork-bot+netdevbpf
Date: Thu Aug 20 2026 - 14:05:25 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>:
On Wed, 19 Aug 2026 19:20:21 -1000 you wrote:
> Walking an unannotated pointer field of a trusted struct yields a bare
> PTR_TO_BTF_ID in non-sleepable programs, which kfuncs and helpers accept,
> but PTR_UNTRUSTED in sleepable programs, which they reject. This gets in the
> way of making ops.init_task() sleepable, which schedulers want for
> allocations. For example, passing args->cgroup into bpf_cgrp_storage_get()
> then fails verification and the only recourse is round-tripping through the
> cgroup ID with bpf_cgroup_from_id().
>
> [...]
Here is the summary with links:
- [bpf-next] bpf: sched_ext: Mark ops argument container pointer fields as trusted
https://git.kernel.org/bpf/bpf-next/c/aed1bf1a352a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html