1. 18 Feb, 2022 1 commit
    • Jakub Kicinski's avatar
      Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · a3fc4b1d
      Jakub Kicinski authored
      Daniel Borkmann says:
      
      ====================
      bpf-next 2022-02-17
      
      We've added 29 non-merge commits during the last 8 day(s) which contain
      a total of 34 files changed, 1502 insertions(+), 524 deletions(-).
      
      The main changes are:
      
      1) Add BTFGen support to bpftool which allows to use CO-RE in kernels without
         BTF info, from Mauricio Vásquez, Rafael David Tinoco, Lorenzo Fontana and
         Leonardo Di Donato. (Details: https://lpc.events/event/11/contributions/948/)
      
      2) Prepare light skeleton to be used in both kernel module and user space
         and convert bpf_preload.ko to use light skeleton, from Alexei Starovoitov.
      
      3) Rework bpftool's versioning scheme and align with libbpf's version number;
         also add linked libbpf version info to "bpftool version", from Quentin Monnet.
      
      4) Add minimal C++ specific additions to bpftool's skeleton codegen to
         facilitate use of C skeletons in C++ applications, from Andrii Nakryiko.
      
      5) Add BPF verifier sanity check whether relative offset on kfunc calls overflows
         desc->imm and reject the BPF program if the case, from Hou Tao.
      
      6) Fix libbpf to use a dynamically allocated buffer for netlink messages to
         avoid receiving truncated messages on some archs, from Toke Høiland-Jørgensen.
      
      7) Various follow-up fixes to the JIT bpf_prog_pack allocator, from Song Liu.
      
      8) Various BPF selftest and vmtest.sh fixes, from Yucong Sun.
      
      9) Fix bpftool pretty print handling on dumping map keys/values when no BTF
         is available, from Jiri Olsa and Yinjun Zhang.
      
      10) Extend XDP frags selftest to check for invalid length, from Lorenzo Bianconi.
      
      * https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (29 commits)
        bpf: bpf_prog_pack: Set proper size before freeing ro_header
        selftests/bpf: Fix crash in core_reloc when bpftool btfgen fails
        selftests/bpf: Fix vmtest.sh to launch smp vm.
        libbpf: Fix memleak in libbpf_netlink_recv()
        bpftool: Fix C++ additions to skeleton
        bpftool: Fix pretty print dump for maps without BTF loaded
        selftests/bpf: Test "bpftool gen min_core_btf"
        bpftool: Gen min_core_btf explanation and examples
        bpftool: Implement btfgen_get_btf()
        bpftool: Implement "gen min_core_btf" logic
        bpftool: Add gen min_core_btf command
        libbpf: Expose bpf_core_{add,free}_cands() to bpftool
        libbpf: Split bpf_core_apply_relo()
        bpf: Reject kfunc calls that overflow insn->imm
        selftests/bpf: Add Skeleton templated wrapper as an example
        bpftool: Add C++-specific open/load/etc skeleton wrappers
        selftests/bpf: Fix GCC11 compiler warnings in -O2 mode
        bpftool: Fix the error when lookup in no-btf maps
        libbpf: Use dynamically allocated buffer when receiving netlink messages
        libbpf: Fix libbpf.map inheritance chain for LIBBPF_0.7.0
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20220217232027.29831-1-daniel@iogearbox.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      a3fc4b1d
  2. 17 Feb, 2022 39 commits