Re: [PATCH bpf-next 1/5] bpf: Hooks for sys_sendmsg

2018-05-22 Thread Andrey Ignatov
Martin KaFai Lau [Mon, 2018-05-21 16:17 -0700]: > On Fri, May 18, 2018 at 07:21:09PM -0700, Andrey Ignatov wrote: [...] > > diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c > > index 2839c1b..6f580ea 100644 > > --- a/net/ipv6/udp.c > > +++ b/net/ipv6/udp.c > > @@ -1315,6 +1315,22 @@ int udpv6_sendmsg(

Re: [PATCH bpf-next 1/5] bpf: Hooks for sys_sendmsg

2018-05-21 Thread kbuild test robot
Hi Andrey, Thank you for the patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Andrey-Ignatov/bpf-Hooks-for-sys_sendmsg/20180522-065614 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master conf

Re: [PATCH bpf-next 1/5] bpf: Hooks for sys_sendmsg

2018-05-21 Thread kbuild test robot
Hi Andrey, Thank you for the patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Andrey-Ignatov/bpf-Hooks-for-sys_sendmsg/20180522-065614 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master conf

Re: [PATCH bpf-next 1/5] bpf: Hooks for sys_sendmsg

2018-05-21 Thread Martin KaFai Lau
On Fri, May 18, 2018 at 07:21:09PM -0700, Andrey Ignatov wrote: > In addition to already existing BPF hooks for sys_bind and sys_connect, > the patch provides new hooks for sys_sendmsg. > > It leverages existing BPF program type `BPF_PROG_TYPE_CGROUP_SOCK_ADDR` > that provides access to socket itl

[PATCH bpf-next 1/5] bpf: Hooks for sys_sendmsg

2018-05-18 Thread Andrey Ignatov
In addition to already existing BPF hooks for sys_bind and sys_connect, the patch provides new hooks for sys_sendmsg. It leverages existing BPF program type `BPF_PROG_TYPE_CGROUP_SOCK_ADDR` that provides access to socket itlself (properties like family, type, protocol) and user-passed `struct sock