Re: [External] Re: [PATCH bpf-next v2 5/9] bpf: verifier: add btf to the function args of bpf_check_attach_target

2024-03-11 Thread 梦龙董
On Tue, Mar 12, 2024 at 9:51 AM Alexei Starovoitov wrote: > > On Mon, Mar 11, 2024 at 2:35 AM Menglong Dong > wrote: > > > > Add target btf to the function args of bpf_check_attach_target(), then > > the caller can specify the btf to check. > > > > Signed-off-by: Menglong Dong > > --- > >

Re: [PATCH bpf-next v2 5/9] bpf: verifier: add btf to the function args of bpf_check_attach_target

2024-03-11 Thread Alexei Starovoitov
On Mon, Mar 11, 2024 at 2:35 AM Menglong Dong wrote: > > Add target btf to the function args of bpf_check_attach_target(), then > the caller can specify the btf to check. > > Signed-off-by: Menglong Dong > --- > include/linux/bpf_verifier.h | 1 + > kernel/bpf/syscall.c | 6 -- >

[PATCH bpf-next v2 5/9] bpf: verifier: add btf to the function args of bpf_check_attach_target

2024-03-11 Thread Menglong Dong
Add target btf to the function args of bpf_check_attach_target(), then the caller can specify the btf to check. Signed-off-by: Menglong Dong --- include/linux/bpf_verifier.h | 1 + kernel/bpf/syscall.c | 6 -- kernel/bpf/trampoline.c | 1 + kernel/bpf/verifier.c| 8