Re: pull-request: bpf 2018-11-01

2018-10-31 Thread David Miller
From: Daniel Borkmann 
Date: Thu,  1 Nov 2018 01:28:41 +0100

> The following pull-request contains BPF updates for your *net* tree.
> 
> The main changes are:
> 
> 1) Fix tcp_bpf_recvmsg() to return -EAGAIN instead of 0 in non-blocking
>case when no data is available yet, from John.
> 
> 2) Fix a compilation error in libbpf_attach_type_by_name() when compiled
>with clang 3.8, from Andrey.
> 
> 3) Fix a partial copy of map pointer on scalar alu and remove id
>generation for RET_PTR_TO_MAP_VALUE return types, from Daniel.
> 
> 4) Add unlimited memlock limit for kernel selftest's flow_dissector_load
>program, from Yonghong.
> 
> 5) Fix ping for some BPF shell based kselftests where distro does not
>ship "ping -6" anymore, from Li.
> 
> Please consider pulling these changes from:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git

Pulled, thanks Daniel.


pull-request: bpf 2018-11-01

2018-10-31 Thread Daniel Borkmann
Hi David,

The following pull-request contains BPF updates for your *net* tree.

The main changes are:

1) Fix tcp_bpf_recvmsg() to return -EAGAIN instead of 0 in non-blocking
   case when no data is available yet, from John.

2) Fix a compilation error in libbpf_attach_type_by_name() when compiled
   with clang 3.8, from Andrey.

3) Fix a partial copy of map pointer on scalar alu and remove id
   generation for RET_PTR_TO_MAP_VALUE return types, from Daniel.

4) Add unlimited memlock limit for kernel selftest's flow_dissector_load
   program, from Yonghong.

5) Fix ping for some BPF shell based kselftests where distro does not
   ship "ping -6" anymore, from Li.

Please consider pulling these changes from:

  git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git

Thanks a lot!



The following changes since commit a6b3a3fa042343e29ffaf9169f5ba3c819d4f9a2:

  net: mvpp2: Fix affinity hint allocation (2018-10-30 11:34:41 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git 

for you to fetch changes up to dfeb8f4c9692fd5e6c3eef19c2e4ae5338dbdb01:

  Merge branch 'verifier-fixes' (2018-10-31 16:53:18 -0700)


Alexei Starovoitov (1):
  Merge branch 'verifier-fixes'

Andrey Ignatov (1):
  libbpf: Fix compile error in libbpf_attach_type_by_name

Daniel Borkmann (4):
  bpf: fix partial copy of map_ptr when dst is scalar
  bpf: don't set id on after map lookup with ptr_to_map_val return
  bpf: add various test cases to test_verifier
  bpf: test make sure to run unpriv test cases in test_verifier

John Fastabend (1):
  bpf: tcp_bpf_recvmsg should return EAGAIN when nonblocking and no data

Li Zhijian (1):
  kselftests/bpf: use ping6 as the default ipv6 ping binary if it exists

Yonghong Song (1):
  tools/bpf: add unlimited rlimit for flow_dissector_load

 include/linux/bpf_verifier.h  |   3 +
 kernel/bpf/verifier.c |  21 +-
 net/ipv4/tcp_bpf.c|   1 +
 tools/lib/bpf/libbpf.c|  13 +-
 tools/testing/selftests/bpf/flow_dissector_load.c |   2 +
 tools/testing/selftests/bpf/test_skb_cgroup_id.sh |   3 +-
 tools/testing/selftests/bpf/test_sock_addr.sh |   3 +-
 tools/testing/selftests/bpf/test_verifier.c   | 321 +++---
 8 files changed, 319 insertions(+), 48 deletions(-)