Re: [PATCH bpf] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-11 Thread Magnus Karlsson
On Mon, Mar 11, 2019 at 5:54 PM Andrii Nakryiko wrote: > > On Mon, Mar 11, 2019 at 7:52 AM Magnus Karlsson > wrote: > > > > In xsk_socket__create(), the libbpf_flags field was not checked for > > setting currently unused/unknown flags. This patch fixes that by returning > > -EINVAL if the user ha

Re: [PATCH bpf] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-11 Thread Andrii Nakryiko
On Mon, Mar 11, 2019 at 7:52 AM Magnus Karlsson wrote: > > In xsk_socket__create(), the libbpf_flags field was not checked for > setting currently unused/unknown flags. This patch fixes that by returning > -EINVAL if the user has set any flag that is not in use at this point > in time. > > Fixes:

[PATCH bpf] libbpf: fix to reject unknown flags in xsk_socket__create()

2019-03-11 Thread Magnus Karlsson
In xsk_socket__create(), the libbpf_flags field was not checked for setting currently unused/unknown flags. This patch fixes that by returning -EINVAL if the user has set any flag that is not in use at this point in time. Fixes: 1cad07884239 ("libbpf: add support for using AF_XDP sockets") Signed-