[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c06b230f-53bd-7f0f-8267-b878e1303bdf@gmail.com>
Date: Sun, 17 Jan 2021 20:53:18 -0700
From: David Ahern <dsahern@...il.com>
To: Luca Boccassi <bluca@...ian.org>, netdev@...r.kernel.org
Cc: stephen@...workplumber.org
Subject: Re: [PATCH iproute2 2/2] vrf: fix ip vrf exec with libbpf
On 1/17/21 3:54 PM, Luca Boccassi wrote:
> The size of bpf_insn is passed to bpf_load_program instead of the number
> of elements as it expects, so ip vrf exec fails with:
>
> $ sudo ip link add vrf-blue type vrf table 10
> $ sudo ip link set dev vrf-blue up
> $ sudo ip/ip vrf exec vrf-blue ls
> Failed to load BPF prog: 'Invalid argument'
> last insn is not an exit or jmp
> processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
> Kernel compiled with CGROUP_BPF enabled?
>
> https://bugs.debian.org/980046
>
> Reported-by: Emmanuel DECAEN <Emmanuel.Decaen@...lto.com>
>
> Signed-off-by: Luca Boccassi <bluca@...ian.org>
> ---
> lib/bpf_glue.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists