1. 08 May, 2018 27 commits
  2. 07 May, 2018 1 commit
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · 90278871
      David S. Miller authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter/IPVS updates for net-next
      
      The following patchset contains Netfilter/IPVS updates for your net-next
      tree, more relevant updates in this batch are:
      
      1) Add Maglev support to IPVS. Moreover, store lastest server weight in
         IPVS since this is needed by maglev, patches from from Inju Song.
      
      2) Preparation works to add iptables flowtable support, patches
         from Felix Fietkau.
      
      3) Hand over flows back to conntrack slow path in case of TCP RST/FIN
         packet is seen via new teardown state, also from Felix.
      
      4) Add support for extended netlink error reporting for nf_tables.
      
      5) Support for larger timeouts that 23 days in nf_tables, patch from
         Florian Westphal.
      
      6) Always set an upper limit to dynamic sets, also from Florian.
      
      7) Allow number generator to make map lookups, from Laura Garcia.
      
      8) Use hash_32() instead of opencode hashing in IPVS, from Vicent Bernat.
      
      9) Extend ip6tables SRH match to support previous, next and last SID,
         from Ahmed Abdelsalam.
      
      10) Move Passive OS fingerprint nf_osf.c, from Fernando Fernandez.
      
      11) Expose nf_conntrack_max through ctnetlink, from Florent Fourcot.
      
      12) Several housekeeping patches for xt_NFLOG, x_tables and ebtables,
         from Taehee Yoo.
      
      13) Unify meta bridge with core nft_meta, then make nft_meta built-in.
         Make rt and exthdr built-in too, again from Florian.
      
      14) Missing initialization of tbl->entries in IPVS, from Cong Wang.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      90278871
  3. 06 May, 2018 8 commits
  4. 04 May, 2018 4 commits
    • David Ahern's avatar
      net/ipv6: rename rt6_next to fib6_next · 8fb11a9a
      David Ahern authored
      This slipped through the cracks in the followup set to the fib6_info flip.
      Rename rt6_next to fib6_next.
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8fb11a9a
    • Daniel Borkmann's avatar
      bpf, xskmap: fix crash in xsk_map_alloc error path handling · e94fa1d9
      Daniel Borkmann authored
      If bpf_map_precharge_memlock() did not fail, then we set err to zero.
      However, any subsequent failure from either alloc_percpu() or the
      bpf_map_area_alloc() will return ERR_PTR(0) which in find_and_alloc_map()
      will cause NULL pointer deref.
      
      In devmap we have the convention that we return -EINVAL on page count
      overflow, so keep the same logic here and just set err to -ENOMEM
      after successful bpf_map_precharge_memlock().
      
      Fixes: fbfc504a ("bpf: introduce new bpf AF_XDP map type BPF_MAP_TYPE_XSKMAP")
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Cc: Björn Töpel <bjorn.topel@intel.com>
      Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      e94fa1d9
    • Daniel Borkmann's avatar
      Merge branch 'bpf-event-output-offload' · a5458aa9
      Daniel Borkmann authored
      Jakub Kicinski says:
      
      ====================
      This series centres on NFP offload of bpf_event_output().  The
      first patch allows perf event arrays to be used by offloaded
      programs.  Next patch makes the nfp driver keep track of such
      arrays to be able to filter FW events referring to maps.
      Perf event arrays are not device bound.  Having driver
      reimplement and manage the perf array seems brittle and unnecessary.
      
      Patch 4 moves slightly the verifier step which replaces map fds
      with map pointers.  This is useful for nfp JIT since we can then
      easily replace host pointers with NFP table ids (patch 6).  This
      allows us to lift the limitation on map helpers having to be used
      with the same map pointer on all paths.  Second use of replacing
      fds with real host map pointers is that we can use the host map
      pointer as a key for FW events in perf event array offload.
      
      Patch 5 adds perf event output offload support for the NFP.
      
      There are some differences between bpf_event_output() offloaded
      and non-offloaded version.  The FW messages which carry events
      may get dropped and reordered relatively easily.  The return codes
      from the helper are also not guaranteed to match the host.  Users
      are warned about some of those discrepancies with a one time
      warning message to kernel logs.
      
      bpftool gains an ability to dump perf ring events in a very simple
      format.  This was very useful for testing and simple debug, maybe
      it will be useful to others?
      
      Last patch is a trivial comment fix.
      ====================
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      a5458aa9
    • Jakub Kicinski's avatar
      bpf: fix references to free_bpf_prog_info() in comments · ab7f5bf0
      Jakub Kicinski authored
      Comments in the verifier refer to free_bpf_prog_info() which
      seems to have never existed in tree.  Replace it with
      free_used_maps().
      Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      ab7f5bf0