Re: pull-request: bpf 2018-10-27

2018-10-26 Thread David Miller
From: Daniel Borkmann 
Date: Sat, 27 Oct 2018 02:07:48 +0200

> The following pull-request contains BPF updates for your *net* tree.
> 
> The main changes are:
> 
> 1) Fix toctou race in BTF header validation, from Martin and Wenwen.
> 
> 2) Fix devmap interface comparison in notifier call which was
>neglecting netns, from Taehee.
> 
> 3) Several fixes in various places, for example, correcting direct
>packet access and helper function availability, from Daniel.
> 
> 4) Fix BPF kselftest config fragment to include af_xdp and sockmap,
>from Naresh.
> 
> 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-10-27

2018-10-26 Thread Daniel Borkmann
Hi David,

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

The main changes are:

1) Fix toctou race in BTF header validation, from Martin and Wenwen.

2) Fix devmap interface comparison in notifier call which was
   neglecting netns, from Taehee.

3) Several fixes in various places, for example, correcting direct
   packet access and helper function availability, from Daniel.

4) Fix BPF kselftest config fragment to include af_xdp and sockmap,
   from Naresh.

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 42d0f71c9b5fd48861d61cfc05c9e001f847c9d5:

  octeontx2-af: Use GFP_ATOMIC under spin lock (2018-10-25 11:36:29 -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 d8fd9e106fbc291167ebb675ad69234597d0fd98:

  bpf: fix wrong helper enablement in cgroup local storage (2018-10-26 16:03:30 
-0700)


Alexei Starovoitov (1):
  Merge branch 'pkt-access-fixes'

Daniel Borkmann (9):
  bpf: fix test suite to enable all unpriv program types
  bpf: disallow direct packet access for unpriv in cg_skb
  bpf: fix direct packet access for flow dissector progs
  bpf: fix cg_skb types to hint access type in may_access_direct_pkt_data
  bpf: fix direct packet write into pop/peek helpers
  bpf: fix leaking uninitialized memory on pop/peek helpers
  bpf: make direct packet write unclone more robust
  bpf: add bpf_jit_limit knob to restrict unpriv allocations
  bpf: fix wrong helper enablement in cgroup local storage

Martin Lau (1):
  bpf, btf: fix a missing check bug in btf_parse

Naresh Kamboju (1):
  selftests/bpf: add config fragments BPF_STREAM_PARSER and XDP_SOCKETS

Taehee Yoo (1):
  bpf: devmap: fix wrong interface selection in notifier_call

 Documentation/sysctl/net.txt|  8 
 include/linux/filter.h  |  1 +
 kernel/bpf/btf.c| 58 +
 kernel/bpf/core.c   | 49 ++--
 kernel/bpf/devmap.c |  3 +-
 kernel/bpf/helpers.c|  2 -
 kernel/bpf/queue_stack_maps.c   |  2 +
 kernel/bpf/verifier.c   | 13 +--
 net/core/filter.c   | 21 +--
 net/core/sysctl_net_core.c  | 10 -
 tools/testing/selftests/bpf/config  |  2 +
 tools/testing/selftests/bpf/test_verifier.c | 15 +++-
 12 files changed, 133 insertions(+), 51 deletions(-)