1. 28 Apr, 2021 2 commits
    • Andreas Roeseler's avatar
      icmp: standardize naming of RFC 8335 PROBE constants · e542d29c
      Andreas Roeseler authored
      The current definitions of constants for PROBE, currently defined only
      in the net-next kernel branch, are inconsistent, with
      some beginning with ICMP and others with simply EXT. This patch
      attempts to standardize the naming conventions of the constants for
      PROBE before their release into a stable Kernel, and to update the
      relevant definitions in net/ipv4/icmp.c.
      
      Similarly, the definitions for the code field (previously
      ICMP_EXT_MAL_QUERY, etc) use the same prefixes as the type field. This
      patch adds _CODE_ to the prefix to clarify the distinction of these
      constants.
      Signed-off-by: default avatarAndreas Roeseler <andreas.a.roeseler@gmail.com>
      Acked-by: default avatarDavid Ahern <dsahern@kernel.org>
      Link: https://lore.kernel.org/r/20210427153635.2591-1-andreas.a.roeseler@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e542d29c
    • Jakub Kicinski's avatar
      Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · f89271f0
      Jakub Kicinski authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2021-04-28
      
      The main changes are:
      
      1) Add link detach and following re-attach for trampolines, from Jiri Olsa.
      
      2) Use kernel's "binary printf" lib for formatted output BPF helpers (which
         avoids the needs for variadic argument handling), from Florent Revest.
      
      3) Fix verifier 64 to 32 bit min/max bound propagation, from Daniel Borkmann.
      
      4) Convert cpumap to use netif_receive_skb_list(), from Lorenzo Bianconi.
      
      5) Add generic batched-ops support to percpu array map, from Pedro Tammela.
      
      6) Various CO-RE relocation BPF selftests fixes, from Andrii Nakryiko.
      
      7) Misc doc rst fixes, from Hengqi Chen.
      
      * https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next:
        bpf, selftests: Update array map tests for per-cpu batched ops
        bpf: Add batched ops support for percpu array
        bpf: Implement formatted output helpers with bstr_printf
        seq_file: Add a seq_bprintf function
        bpf, docs: Fix literal block for example code
        bpf, cpumap: Bulk skb using netif_receive_skb_list
        bpf: Fix propagation of 32 bit unsigned bounds from 64 bit bounds
        bpf: Lock bpf_trace_printk's tmp buf before it is written to
        selftests/bpf: Fix core_reloc test runner
        selftests/bpf: Fix field existence CO-RE reloc tests
        selftests/bpf: Fix BPF_CORE_READ_BITFIELD() macro
        libbpf: Support BTF_KIND_FLOAT during type compatibility checks in CO-RE
        selftests/bpf: Add remaining ASSERT_xxx() variants
        selftests/bpf: Use ASSERT macros in lsm test
        selftests/bpf: Test that module can't be unloaded with attached trampoline
        selftests/bpf: Add re-attach test to lsm test
        selftests/bpf: Add re-attach test to fexit_test
        selftests/bpf: Add re-attach test to fentry_test
        bpf: Allow trampoline re-attach for tracing and lsm programs
      ====================
      
      Link: https://lore.kernel.org/r/20210427233740.22238-1-daniel@iogearbox.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      f89271f0
  2. 27 Apr, 2021 38 commits