1. 18 Feb, 2022 3 commits
    • Geliang Tang's avatar
      selftests: mptcp: simplify pm_nl_change_endpoint · bccefb76
      Geliang Tang authored
      This patch simplified pm_nl_change_endpoint(), using id-based address
      lookups only. And dropped the fragile way of parsing 'addr' and 'id'
      from the output of pm_nl_show_endpoints().
      Signed-off-by: default avatarGeliang Tang <geliang.tang@suse.com>
      Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      bccefb76
    • Matthieu Baerts's avatar
      selftests: mptcp: increase timeout to 20 minutes · d17b968b
      Matthieu Baerts authored
      With the increase number of tests, one CI instance, using a debug kernel
      config and not recent hardware, takes around 10 minutes to execute the
      slowest MPTCP test: mptcp_join.sh.
      
      Even if most CIs don't take that long to execute these tests --
      typically max 10 minutes to run all selftests -- it will help some of
      them if the timeout is increased.
      
      The timeout could be disabled but it is always good to have an extra
      safeguard, just in case.
      
      Please note that on slow public CIs with kernel debug settings, it has
      been observed it can easily take up to 45 minutes to execute all tests
      in this very slow environment with other jobs running in parallel.
      The slowest test, mptcp_join.sh takes ~30 minutes in this case.
      
      In such environments, the selftests timeout set in the 'settings' file
      is disabled because this environment is known as being exceptionnally
      slow. It has been decided not to take such exceptional environments into
      account and set the timeout to 20min.
      Signed-off-by: default avatarMatthieu Baerts <matthieu.baerts@tessares.net>
      Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      d17b968b
    • 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 37 commits