[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170427131542.3c8dfa24@redhat.com>
Date: Thu, 27 Apr 2017 13:15:42 +0200
From: Jesper Dangaard Brouer <brouer@...hat.com>
To: Daniel Borkmann <borkmann@...earbox.net>,
Martin KaFai Lau <kafai@...com>
Cc: brouer@...hat.com,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Strange samples/bpf loading error for maps on net-next?
To provoke this bug, remember that you MUST call:
make headers_install
In the kernels root directory, else you will be compiling samples/bpf/
against the older headers previously installed.
The error looks like:
$ sudo ./sockex1
bpf_load_program() err=22
fd 0 is not pointing to valid bpf_map
sockex1: [...]/samples/bpf/sockex1_user.c:26: main: Assertion `setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, sizeof(prog_fd[0])) == 0' failed.
Aborted
I've found that the bug were introduced in
commit: fb30d4b71214 ("bpf: Add tests for map-in-map")
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
Powered by blists - more mailing lists