Re: [PATCH bpf-next v6 4/5] selftests/bpf: Test forbidden bpf_ksock_send() LSM attach
Song Liu <[email protected]>
| Newsgroups | org.kernel.vger.bpf,org.kernel.vger.netdev |
|---|---|
| Message-ID | <CAPhsuW7J-xiABqCqF7f_tPm5wFxDWhS=dDQ-kxndOX4Lp7Hxgg@mail.gmail.com> |
On Wed, Aug 12, 2026 at 8:43 AM Mahe Tardy <[email protected]> wrote: > > The bpf_ksock_send() kfunc eventually calls security_socket_sendmsg(), > thus creating a possible recursion if a program calling the kfunc is > attached on that specific hook. A filter is added on the kfunc > registration to prevent that at load time from the verifier. This test > exercises that the verifier will reject such program on that attach > point. > > Acked-by: Stanislav Fomichev <[email protected]> > Signed-off-by: Mahe Tardy <[email protected]> Acked-by: Song Liu <[email protected]>