On Fri, 26 Apr 2024 at 20:56, Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > From: Alexei Starovoitov <ast@xxxxxxxxxx> > > The verifier assumes that 'sk' field in 'struct socket' is valid > and non-NULL when 'socket' pointer itself is trusted and non-NULL. > That may not be the case when socket was just created and > passed to LSM socket_accept hook. > Fix this verifier assumption and adjust tests. > > Reported-by: Liam Wisehart <liamwisehart@xxxxxxxx> > Fixes: 6fcd486b3a0a ("bpf: Refactor RCU enforcement in the verifier.") > Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx> > --- Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>