Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 00:00:05 +0000 (17:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 00:00:05 +0000 (17:00 -0700)
Daniel Borkmann says:

====================
pull-request: bpf-next 2019-04-12

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

The main changes are:

1) Improve BPF verifier scalability for large programs through two
   optimizations: i) remove verifier states that are not useful in pruning,
   ii) stop walking parentage chain once first LIVE_READ is seen. Combined
   gives approx 20x speedup. Increase limits for accepting large programs
   under root, and add various stress tests, from Alexei.

2) Implement global data support in BPF. This enables static global variables
   for .data, .rodata and .bss sections to be properly handled which allows
   for more natural program development. This also opens up the possibility
   to optimize program workflow by compiling ELFs only once and later only
   rewriting section data before reload, from Daniel and with test cases and
   libbpf refactoring from Joe.

3) Add config option to generate BTF type info for vmlinux as part of the
   kernel build process. DWARF debug info is converted via pahole to BTF.
   Latter relies on libbpf and makes use of BTF deduplication algorithm which
   results in 100x savings compared to DWARF data. Resulting .BTF section is
   typically about 2MB in size, from Andrii.

4) Add BPF verifier support for stack access with variable offset from
   helpers and add various test cases along with it, from Andrey.

5) Extend bpf_skb_adjust_room() growth BPF helper to mark inner MAC header
   so that L2 encapsulation can be used for tc tunnels, from Alan.

6) Add support for input __sk_buff context in BPF_PROG_TEST_RUN so that
   users can define a subset of allowed __sk_buff fields that get fed into
   the test program, from Stanislav.

7) Add bpf fs multi-dimensional array tests for BTF test suite and fix up
   various UBSAN warnings in bpftool, from Yonghong.

8) Generate a pkg-config file for libbpf, from Luca.

9) Dump program's BTF id in bpftool, from Prashant.

10) libbpf fix to use smaller BPF log buffer size for AF_XDP's XDP
    program, from Magnus.

11) kallsyms related fixes for the case when symbols are not present in
    BPF selftests and samples, from Daniel
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
1  2 
.mailmap
Documentation/bpf/btf.rst
Makefile
kernel/bpf/verifier.c
net/core/filter.c
tools/lib/bpf/Makefile
tools/lib/bpf/btf.c
tools/testing/selftests/bpf/test_btf.c

diff --cc .mailmap
Simple merge
Simple merge
diff --cc Makefile
Simple merge
Simple merge
Simple merge
index 8e7c56e9590fbb0dfa2d76780696206b166ec440,008344507700a6129833e07cdf916f9ac5898a5e..c6c06bc6683cbd783bad40d98abdea1436b5a285
@@@ -220,11 -228,14 +228,15 @@@ install_lib: all_cm
  install_headers:
        $(call QUIET_INSTALL, headers) \
                $(call do_install,bpf.h,$(prefix)/include/bpf,644); \
 -              $(call do_install,libbpf.h,$(prefix)/include/bpf,644);
 -              $(call do_install,btf.h,$(prefix)/include/bpf,644);
 +              $(call do_install,libbpf.h,$(prefix)/include/bpf,644); \
 +              $(call do_install,btf.h,$(prefix)/include/bpf,644); \
 +              $(call do_install,xsk.h,$(prefix)/include/bpf,644);
  
- install: install_lib
+ install_pkgconfig: $(PC_FILE)
+       $(call QUIET_INSTALL, $(PC_FILE)) \
+               $(call do_install,$(PC_FILE),$(libdir_SQ)/pkgconfig,644)
+ install: install_lib install_pkgconfig
  
  ### Cleaning rules
  
Simple merge