-
- Downloads
Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull bpf fixes from Daniel Borkmann: - Fix a bug in the BPF verifier to track changes to packet data property for global functions (Eduard Zingerman) - Fix a theoretical BPF prog_array use-after-free in RCU handling of __uprobe_perf_func (Jann Horn) - Fix BPF tracing to have an explicit list of tracepoints and their arguments which need to be annotated as PTR_MAYBE_NULL (Kumar Kartikeya Dwivedi) - Fix a logic bug in the bpf_remove_insns code where a potential error would have been wrongly propagated (Anton Protopopov) - Avoid deadlock scenarios caused by nested kprobe and fentry BPF programs (Priya Bala Govindasamy) - Fix a bug in BPF verifier which was missing a size check for BTF-based context access (Kumar Kartikeya Dwivedi) - Fix a crash found by syzbot through an invalid BPF prog_array access in perf_event_detach_bpf_prog (Jiri Olsa) - Fix several BPF sockmap bugs including a race causing a refcount imbalance upon element replace (Michal Luczaj) - Fix a use-after-free from mismatching BPF program/attachment RCU flavors (Jann Horn) * tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: (23 commits) bpf: Avoid deadlock caused by nested kprobe and fentry bpf programs selftests/bpf: Add tests for raw_tp NULL args bpf: Augment raw_tp arguments with PTR_MAYBE_NULL bpf: Revert "bpf: Mark raw_tp arguments with PTR_MAYBE_NULL" selftests/bpf: Add test for narrow ctx load for pointer args bpf: Check size for BTF-based ctx access of pointer members selftests/bpf: extend changes_pkt_data with cases w/o subprograms bpf: fix null dereference when computing changes_pkt_data of prog w/o subprogs bpf: Fix theoretical prog_array UAF in __uprobe_perf_func() bpf: fix potential error return selftests/bpf: validate that tail call invalidates packet pointers bpf: consider that tail calls invalidate packet pointers selftests/bpf: freplace tests for tracking of changes_packet_data bpf: check changes_pkt_data property for extension programs selftests/bpf: test for changing packet data from global functions bpf: track changes_pkt_data property for global functions bpf: refactor bpf_helper_changes_pkt_data to use helper number bpf: add find_containing_subprog() utility function bpf,perf: Fix invalid prog_array access in perf_event_detach_bpf_prog bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors ...
No related branches found
No related tags found
Showing
- include/linux/bpf.h 6 additions, 14 deletionsinclude/linux/bpf.h
- include/linux/bpf_verifier.h 1 addition, 0 deletionsinclude/linux/bpf_verifier.h
- include/linux/filter.h 1 addition, 1 deletioninclude/linux/filter.h
- kernel/bpf/Makefile 6 additions, 0 deletionskernel/bpf/Makefile
- kernel/bpf/btf.c 145 additions, 4 deletionskernel/bpf/btf.c
- kernel/bpf/core.c 6 additions, 2 deletionskernel/bpf/core.c
- kernel/bpf/verifier.c 78 additions, 82 deletionskernel/bpf/verifier.c
- kernel/trace/bpf_trace.c 11 additions, 0 deletionskernel/trace/bpf_trace.c
- kernel/trace/trace_uprobe.c 5 additions, 1 deletionkernel/trace/trace_uprobe.c
- net/core/filter.c 30 additions, 35 deletionsnet/core/filter.c
- net/core/sock_map.c 3 additions, 3 deletionsnet/core/sock_map.c
- tools/testing/selftests/bpf/prog_tests/changes_pkt_data.c 107 additions, 0 deletionstools/testing/selftests/bpf/prog_tests/changes_pkt_data.c
- tools/testing/selftests/bpf/prog_tests/raw_tp_null.c 3 additions, 0 deletionstools/testing/selftests/bpf/prog_tests/raw_tp_null.c
- tools/testing/selftests/bpf/prog_tests/sockmap_basic.c 5 additions, 3 deletionstools/testing/selftests/bpf/prog_tests/sockmap_basic.c
- tools/testing/selftests/bpf/progs/changes_pkt_data.c 39 additions, 0 deletionstools/testing/selftests/bpf/progs/changes_pkt_data.c
- tools/testing/selftests/bpf/progs/changes_pkt_data_freplace.c 18 additions, 0 deletions...s/testing/selftests/bpf/progs/changes_pkt_data_freplace.c
- tools/testing/selftests/bpf/progs/raw_tp_null.c 9 additions, 10 deletionstools/testing/selftests/bpf/progs/raw_tp_null.c
- tools/testing/selftests/bpf/progs/raw_tp_null_fail.c 24 additions, 0 deletionstools/testing/selftests/bpf/progs/raw_tp_null_fail.c
- tools/testing/selftests/bpf/progs/tc_bpf2bpf.c 2 additions, 0 deletionstools/testing/selftests/bpf/progs/tc_bpf2bpf.c
- tools/testing/selftests/bpf/progs/test_tp_btf_nullable.c 1 addition, 5 deletionstools/testing/selftests/bpf/progs/test_tp_btf_nullable.c
Loading
Please register or sign in to comment