pull-request: bpf 2023-01-27
Subsystems (3)
Daniel Borkmann
maintainerHi David, hi Jakub, hi Paolo, hi Eric,
The following pull-request contains BPF updates for your *net* tree.
We've added 10 non-merge commits during the last 9 day(s) which contain a total of 10 files changed, 170 insertions(+), 59 deletions(-).
The main changes are:
1) Fix preservation of register's parent/live fields when copying range-info, from Eduard Zingerman.
2) Fix an off-by-one bug in bpf_mem_cache_idx() to select the right cache, from Hou Tao.
3) Fix stack overflow from infinite recursion in sock_map_close(), from Jakub Sitnicki.
4) Fix missing btf_put() in register_btf_id_dtor_kfuncs()'s error path, from Jiri Olsa.
5) Fix a splat from bpf_setsockopt() via lsm_cgroup/socket_sock_rcv_skb, from Kui-Feng Lee.
6) Fix bpf_send_signal[_thread]() helpers to hold a reference on the task, from Yonghong Song.
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:
Hao Sun, John Fastabend, Kumar Kartikeya Dwivedi, Yonghong Song
----------------------------------------------------------------
The following changes since commit b9fb10d131b8c84af9bb14e2078d5c63600c7dea:
l2tp: prevent lockdep issue in l2tp_tunnel_register() (2023-01-18 14:44:54 +0000)
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 5416c9aea8323583e8696f0500b6142dfae80821:
bpf: Fix the kernel crash caused by bpf_setsockopt(). (2023-01-26 23:26:40 -0800)
----------------------------------------------------------------
bpf-for-netdev
----------------------------------------------------------------
Alexei Starovoitov (2):
Merge branch 'bpf: Fix to preserve reg parent/live fields when copying range info' Merge branch 'bpf, sockmap: Fix infinite recursion in sock_map_close'
Eduard Zingerman (2):
bpf: Fix to preserve reg parent/live fields when copying range info selftests/bpf: Verify copy_register_state() preserves parent/live fields
Hou Tao (1):
bpf: Fix off-by-one error in bpf_mem_cache_idx()
Jakub Sitnicki (4):
bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself bpf, sockmap: Check for any of tcp_bpf_prots when cloning a listener selftests/bpf: Pass BPF skeleton to sockmap_listen ops tests selftests/bpf: Cover listener cloning with progs attached to sockmap
Jiri Olsa (1):
bpf: Add missing btf_put to register_btf_id_dtor_kfuncs
Kui-Feng Lee (1):
bpf: Fix the kernel crash caused by bpf_setsockopt().
Yonghong Song (1):
bpf: Fix a possible task gone issue with bpf_send_signal[_thread]() helpers
include/linux/util_macros.h | 12 ++++ kernel/bpf/bpf_lsm.c | 1 - kernel/bpf/btf.c | 4 +- kernel/bpf/memalloc.c | 2 +- kernel/bpf/verifier.c | 25 +++++-- kernel/trace/bpf_trace.c | 3 +- net/core/sock_map.c | 61 ++++++++-------- net/ipv4/tcp_bpf.c | 4 +- .../selftests/bpf/prog_tests/sockmap_listen.c | 81 +++++++++++++++++----- .../selftests/bpf/verifier/search_pruning.c | 36 ++++++++++ 10 files changed, 170 insertions(+), 59 deletions(-)
This pull request was applied to bpf/bpf.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This pull request was applied to bpf/bpf.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Fri, 27 Jan 2023 22:58:20 +0100 you wrote:
Hi David, hi Jakub, hi Paolo, hi Eric,
The following pull-request contains BPF updates for your *net* tree.
We've added 10 non-merge commits during the last 9 day(s) which contain a total of 10 files changed, 170 insertions(+), 59 deletions(-).
[...]
Here is the summary with links:
- pull-request: bpf 2023-01-27
https://git.kernel.org/bpf/bpf/c/0548c5f26a0f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html