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

2020-08-21 Thread Alexei Starovoitov
On Fri, Aug 21, 2020 at 1:53 PM Yonghong Song wrote: > > > > On 8/21/20 12:07 PM, Udip Pant wrote: > > > > > > > On 8/20/20, 11:17 PM, "Yonghong Song" wrote: > >> > >> > >> > >> On 8/20/20 11:13 PM, Yonghong Song wrote: > >>> > >>> > >>> On 8/20/20 5:28 PM, Udip Pant wrote: > While using dy

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

2020-08-21 Thread Yonghong Song
On 8/21/20 12:07 PM, Udip Pant wrote: > On 8/20/20, 11:17 PM, "Yonghong Song" wrote: On 8/20/20 11:13 PM, Yonghong Song wrote: On 8/20/20 5:28 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 pro

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

2020-08-21 Thread Udip Pant
> On 8/20/20, 11:17 PM, "Yonghong Song" wrote: > > > > On 8/20/20 11:13 PM, Yonghong Song wrote: >> >> >> On 8/20/20 5:28 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 /

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

2020-08-20 Thread Yonghong Song
On 8/20/20 11:13 PM, Yonghong Song wrote: On 8/20/20 5:28 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 u

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

2020-08-20 Thread Yonghong Song
On 8/20/20 5:28 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 v2 bpf 1/2] bpf: verifier: check for packet data access based on target prog

2020-08-20 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