mbox series

pull-request: bpf 2020-11-06

Message ID 20201106221759.24143-1-alexei.starovoitov@gmail.com (mailing list archive)
State Not Applicable
Delegated to: Netdev Maintainers
Headers show
Series pull-request: bpf 2020-11-06 | expand

Pull-request

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

Message

Alexei Starovoitov Nov. 6, 2020, 10:17 p.m. UTC
Hi David,

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

We've added 15 non-merge commits during the last 14 day(s) which contain
a total of 25 files changed, 346 insertions(+), 49 deletions(-).

The main changes are:

1) Pre-allocated per-cpu hashmap needs to zero-fill reused element, from David.

2) Tighten bpf_lsm function check, from KP.

3) Fix bpftool attaching to flow dissector, from Lorenz.

4) Use -fno-gcse for the whole kernel/bpf/core.c instead of function attribute, from Ard.

Please consider pulling these changes from:

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

Thanks a lot!

Also thanks to reporters, reviewers and testers of commits in this pull-request:

Andrii Nakryiko, Björn Töpel, Geert Uytterhoeven, Jesper Dangaard 
Brouer, Jiri Benc, kernel test robot, Matthieu Baerts, Nick Desaulniers, 
Randy Dunlap, Song Liu, Tobias Klauser, Toke Høiland-Jørgensen

----------------------------------------------------------------

The following changes since commit 435ccfa894e35e3d4a1799e6ac030e48a7b69ef5:

  tcp: Prevent low rmem stalls with SO_RCVLOWAT. (2020-10-23 19:11:20 -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 6f64e477830000746c1f992050fbd45c03c89429:

  bpf: Update verification logic for LSM programs (2020-11-06 13:15:21 -0800)

----------------------------------------------------------------
Andrii Nakryiko (2):
      selftest/bpf: Fix profiler test using CO-RE relocation for enums
      bpf: Add struct bpf_redir_neigh forward declaration to BPF helper defs

Ard Biesheuvel (1):
      bpf: Don't rely on GCC __attribute__((optimize)) to disable GCSE

Arnd Bergmann (1):
      bpf: Fix -Wshadow warnings

David Verbeiren (1):
      bpf: Zero-fill re-used per-cpu map element

Ian Rogers (3):
      tools, bpftool: Avoid array index warnings.
      tools, bpftool: Remove two unused variables.
      libbpf, hashmap: Fix undefined behavior in hash_bits

KP Singh (1):
      bpf: Update verification logic for LSM programs

Lorenz Bauer (1):
      tools/bpftool: Fix attaching flow dissector

Magnus Karlsson (3):
      xsk: Fix possible memory leak at socket close
      libbpf: Fix null dereference in xsk_socket__delete
      libbpf: Fix possible use after free in xsk_socket__delete

Randy Dunlap (1):
      bpf: BPF_PRELOAD depends on BPF_SYSCALL

Toke Høiland-Jørgensen (1):
      samples/bpf: Set rlimit for memlock to infinity in all samples

 include/linux/compiler-gcc.h                      |   2 -
 include/linux/compiler_types.h                    |   4 -
 include/linux/filter.h                            |  22 +--
 include/net/xsk_buff_pool.h                       |   2 +-
 kernel/bpf/Makefile                               |   6 +-
 kernel/bpf/bpf_lsm.c                              |  10 +-
 kernel/bpf/core.c                                 |   2 +-
 kernel/bpf/hashtab.c                              |  30 ++-
 kernel/bpf/preload/Kconfig                        |   1 +
 net/xdp/xsk.c                                     |   3 +-
 net/xdp/xsk_buff_pool.c                           |   7 +-
 samples/bpf/task_fd_query_user.c                  |   2 +-
 samples/bpf/tracex2_user.c                        |   2 +-
 samples/bpf/tracex3_user.c                        |   2 +-
 samples/bpf/xdp_redirect_cpu_user.c               |   2 +-
 samples/bpf/xdp_rxq_info_user.c                   |   2 +-
 scripts/bpf_helpers_doc.py                        |   1 +
 tools/bpf/bpftool/feature.c                       |   7 +-
 tools/bpf/bpftool/prog.c                          |   2 +-
 tools/bpf/bpftool/skeleton/profiler.bpf.c         |   4 +-
 tools/lib/bpf/hashmap.h                           |  15 +-
 tools/lib/bpf/xsk.c                               |   9 +-
 tools/testing/selftests/bpf/prog_tests/map_init.c | 214 ++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/profiler.inc.h  |  11 +-
 tools/testing/selftests/bpf/progs/test_map_init.c |  33 ++++
 25 files changed, 346 insertions(+), 49 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/map_init.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_map_init.c

Comments

Jakub Kicinski Nov. 7, 2020, 3:57 a.m. UTC | #1
On Fri,  6 Nov 2020 14:17:59 -0800 Alexei Starovoitov wrote:
> 1) Pre-allocated per-cpu hashmap needs to zero-fill reused element, from David.
> 
> 2) Tighten bpf_lsm function check, from KP.
> 
> 3) Fix bpftool attaching to flow dissector, from Lorenz.
> 
> 4) Use -fno-gcse for the whole kernel/bpf/core.c instead of function attribute, from Ard.


Pulled, thanks.