Re: [PATCH bpf v2 2/2] bpf: Reject untrusted pointers in refcount_acquire
Ning Ding <[email protected]> Mon, 3 Aug 2026 00:44:38 -0700
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <CAJP4iuvL2=72SUwjHeN7mDLKOSkM-KKvBVYrE40R+rnOJs9P-w@mail.gmail.com> |
> In addition, I would add a comment saying that the BPF_WRITE case for the > type_is_untrusted_ptr_alloc_obj() types was already rejected earlier, so this > check only permits reads on them. Thanks, I’m preparing the respin and will check every type_is_ptr_alloc_obj() caller to decide whether it should use the new stricter one or stay the same.