Re: [PATCH bpf-next v6 2/5] bpf: Add ksock kfuncs
Song Liu <[email protected]>
| Newsgroups | org.kernel.vger.bpf,org.kernel.vger.netdev |
|---|---|
| Message-ID | <CAPhsuW5MrfNwV_gwvP=uCWop46vuahyR8oXJsX2Wp70SCB-+uQ@mail.gmail.com> |
On Wed, Aug 12, 2026 at 8:43 AM Mahe Tardy <[email protected]> wrote: [...] > > In bpf_ksock_create(), we copy the arg values to avoid TOCTOU races > since the kfunc can sleep and the arg values could be stored in a map > that could be re-written by BPF progs or even userspace programs if the > map is mmaped. > > Acked-by: Stanislav Fomichev <[email protected]> > Reviewed-by: Jiayuan Chen <[email protected]> > Signed-off-by: Mahe Tardy <[email protected]> Acked-by: Song Liu <[email protected]>