[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <652552a0-c73c-a726-23f6-9336816e111c@iogearbox.net>
Date: Fri, 22 Jun 2018 00:33:33 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Yonghong Song <yhs@...com>, ast@...com, netdev@...r.kernel.org
Cc: kernel-team@...com
Subject: Re: [PATCH bpf] tools/bpf: fix test_sockmap failure
On 06/21/2018 07:02 PM, Yonghong Song wrote:
> On one of our production test machine, when running
> bpf selftest test_sockmap, I got the following error:
> # sudo ./test_sockmap
> libbpf: failed to create map (name: 'sock_map'): Operation not permitted
> libbpf: failed to load object 'test_sockmap_kern.o'
> libbpf: Can't get the 0th fd from program sk_skb1: only -1 instances
> ......
> load_bpf_file: (-1) Operation not permitted
> ERROR: (-1) load bpf failed
>
> The error is due to not-big-enough rlimit
> struct rlimit r = {10 * 1024 * 1024, RLIM_INFINITY};
>
> The test already includes "bpf_rlimit.h", which sets current
> and max rlimit to RLIM_INFINITY. Let us just use it.
>
> Signed-off-by: Yonghong Song <yhs@...com>
Agree, applied to bpf, thanks Yonghong!
Powered by blists - more mailing lists