Re: [PATCH bpf-next 2/3] bpf: Add user memory access kfuncs for linux_binprm
From: Anastasios Papagiannis
Date: Mon Aug 31 2026 - 05:49:19 EST
> this is probably ok, but also we might want to look into having
> verifier still allow to dereference trusted ptr-or-null into untrusted
> ptr_to_btf_id to help with smooth transitions like this.
> Not sure how complicated that would be in the verifier, but that would
> be a nice backwards compat preserving behavior.
I have just submitted an updated version of this series that also allows
to dereference trusted ptr-or-null into untrusted ptr_to_btf_id in
https://lore.kernel.org/bpf/20260831092305.42062-1-tasos.papagiannnis@xxxxxxxxx/T/#t.
> But to keep things simple today, I'd just mark that bprm->mm pointer
> as TRUSTED_OR_NULL.
If you think v3 is too complicated, or that the trusted-or-null
dereference support should be split into a separate series, please let
me know. In that case, I will simply mark the bprm->mm pointer as
TRUSTED_OR_NULL.
Thanks,
Anastasios