Design for sk_lookup helper function in context of sk_lookup hook

2021-03-17 Thread Shanti Lombard née Bouchez-Mongardé
Hello everyone, Background discussion: https://lore.kernel.org/bpf/CAADnVQJnX-+9u--px_VnhrMTPB=o9y0lh9t7rjbqzflchbu...@mail.gmail.com/ In a previous e-mail I was explaining that sk_lookup BPF programs had no way to lookup existing sockets in kernel space. The sockets have to be provided by u

Re: Design for sk_lookup helper function in context of sk_lookup hook

2021-03-19 Thread Shanti Lombard née Bouchez-Mongardé
Le 19/03/2021 à 17:55, Martin KaFai Lau a écrit : On Wed, Mar 17, 2021 at 10:04:18AM +0100, Shanti Lombard née Bouchez-Mongardé wrote: Q1: How do we prevent socket lookup from triggering BPF sk_lookup causing a loop? The bpf_sk_lookup_(tcp|udp) will be called from the BPF_PROG_TYPE_SK_LOOKUP