mbox series

pull-request: bpf 2023-10-02

Message ID 20231002113417.2309-1-daniel@iogearbox.net (mailing list archive)
State Accepted
Commit 1eb3dee16a52b1a40a0cccbe79f87b453ddbc1a8
Delegated to: Netdev Maintainers
Headers show
Series pull-request: bpf 2023-10-02 | expand

Pull-request

https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git tags/for-netdev

Checks

Context Check Description
netdev/tree_selection success Pull request for net, async
netdev/build_32bit success Errors and warnings before: 2823 this patch: 2823
netdev/build_clang success Errors and warnings before: 1515 this patch: 1515
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 2909 this patch: 2909

Message

Daniel Borkmann Oct. 2, 2023, 11:34 a.m. UTC
Hi David, hi Jakub, hi Paolo, hi Eric,

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

We've added 11 non-merge commits during the last 12 day(s) which contain
a total of 12 files changed, 176 insertions(+), 41 deletions(-).

The main changes are:

1) Fix BPF verifier to reset backtrack_state masks on global function exit as
   otherwise subsequent precision tracking would reuse them, from Andrii Nakryiko.

2) Several sockmap fixes for available bytes accounting, from John Fastabend.

3) Reject sk_msg egress redirects to non-TCP sockets given this is only
   supported for TCP sockets today, from Jakub Sitnicki.

4) Fix a syzkaller splat in bpf_mprog when hitting maximum program limits with
   BPF_F_BEFORE directive, from Daniel Borkmann and Nikolay Aleksandrov.

5) Fix BPF memory allocator to use kmalloc_size_roundup() to adjust
   size_index for selecting a bpf_mem_cache, from Hou Tao.

6) Fix arch_prepare_bpf_trampoline return code for s390 JIT, from Song Liu.

7) Fix bpf_trampoline_get when CONFIG_BPF_JIT is turned off, from Leon Hwang.

Please consider pulling these changes from:

  git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git tags/for-netdev

Thanks a lot!

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

Chris Mason, Dan Carpenter, Emil Renner Berthing, Ilya Leoshkevich, 
Jakub Sitnicki, John Fastabend, kernel test robot, Nathan Chancellor

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

The following changes since commit 8070274b472e2e9f5f67a990f5e697634c415708:

  net: stmmac: fix incorrect rxq|txq_stats reference (2023-09-19 10:21:15 +0200)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git tags/for-netdev

for you to fetch changes up to 9077fc228f09c9f975c498c55f5d2e882cd0da59:

  bpf: Use kmalloc_size_roundup() to adjust size_index (2023-09-30 09:39:28 -0700)

----------------------------------------------------------------
bpf-for-netdev

----------------------------------------------------------------
Alexei Starovoitov (1):
      Merge branch 's390-bpf-fix-arch_prepare_bpf_trampoline'

Andrii Nakryiko (1):
      bpf: unconditionally reset backtrack_state masks on global func exit

Daniel Borkmann (2):
      bpf, mprog: Fix maximum program check on mprog attachment
      selftest/bpf: Add various selftests for program limits

Hou Tao (1):
      bpf: Use kmalloc_size_roundup() to adjust size_index

Jakub Sitnicki (1):
      bpf, sockmap: Reject sk_msg egress redirects to non-TCP sockets

John Fastabend (3):
      bpf: tcp_read_skb needs to pop skb regardless of seq
      bpf, sockmap: Do not inc copied_seq when PEEK flag set
      bpf, sockmap: Add tests for MSG_F_PEEK

Leon Hwang (1):
      bpf: Fix tr dereferencing

Song Liu (2):
      s390/bpf: Let arch_prepare_bpf_trampoline return program size
      selftests/bpf: Check bpf_cubic_acked() is called via struct_ops

 arch/s390/net/bpf_jit_comp.c                       |  2 +-
 include/linux/bpf.h                                |  2 +-
 kernel/bpf/memalloc.c                              | 44 +++++-------
 kernel/bpf/mprog.c                                 |  3 +
 kernel/bpf/verifier.c                              |  8 +--
 net/core/sock_map.c                                |  4 ++
 net/ipv4/tcp.c                                     | 10 +--
 net/ipv4/tcp_bpf.c                                 |  4 +-
 .../testing/selftests/bpf/prog_tests/bpf_tcp_ca.c  |  2 +
 .../selftests/bpf/prog_tests/sockmap_basic.c       | 51 +++++++++++++
 tools/testing/selftests/bpf/prog_tests/tc_opts.c   | 84 ++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/bpf_cubic.c      |  3 +
 12 files changed, 176 insertions(+), 41 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 4, 2023, 3:40 p.m. UTC | #1
Hello:

This pull request was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon,  2 Oct 2023 13:34:17 +0200 you wrote:
> Hi David, hi Jakub, hi Paolo, hi Eric,
> 
> The following pull-request contains BPF updates for your *net* tree.
> 
> We've added 11 non-merge commits during the last 12 day(s) which contain
> a total of 12 files changed, 176 insertions(+), 41 deletions(-).
> 
> [...]

Here is the summary with links:
  - pull-request: bpf 2023-10-02
    https://git.kernel.org/netdev/net/c/1eb3dee16a52

You are awesome, thank you!