Re: [PATCH bpf] bpf: verifier: check for packet data access based on target prog

2020-08-18 Thread Yonghong Song
On 8/18/20 6:12 PM, Udip Pant wrote: While using dynamic program extension (of type BPF_PROG_TYPE_EXT), we need to check the program type of the target program to grant the read / write access to the packet data. The BPF_PROG_TYPE_EXT type can be used to extend types such as XDP, SKB and othe

[PATCH bpf] bpf: verifier: check for packet data access based on target prog

2020-08-18 Thread Udip Pant
While using dynamic program extension (of type BPF_PROG_TYPE_EXT), we need to check the program type of the target program to grant the read / write access to the packet data. The BPF_PROG_TYPE_EXT type can be used to extend types such as XDP, SKB and others. Since the BPF_PROG_TYPE_EXT program ty