1. 18 Mar, 2021 2 commits
    • Jakub Kicinski's avatar
      ipv6: weaken the v4mapped source check · dcc32f4f
      Jakub Kicinski authored
      This reverts commit 6af1799a.
      
      Commit 6af1799a ("ipv6: drop incoming packets having a v4mapped
      source address") introduced an input check against v4mapped addresses.
      Use of such addresses on the wire is indeed questionable and not
      allowed on public Internet. As the commit pointed out
      
        https://tools.ietf.org/html/draft-itojun-v6ops-v4mapped-harmful-02
      
      lists potential issues.
      
      Unfortunately there are applications which use v4mapped addresses,
      and breaking them is a clear regression. For example v4mapped
      addresses (or any semi-valid addresses, really) may be used
      for uni-direction event streams or packet export.
      
      Since the issue which sparked the addition of the check was with
      TCP and request_socks in particular push the check down to TCPv6
      and DCCP. This restores the ability to receive UDPv6 packets with
      v4mapped address as the source.
      
      Keep using the IPSTATS_MIB_INHDRERRORS statistic to minimize the
      user-visible changes.
      
      Fixes: 6af1799a ("ipv6: drop incoming packets having a v4mapped source address")
      Reported-by: default avatarSunyi Shao <sunyishao@fb.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Acked-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
      Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dcc32f4f
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · e65eaded
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf 2021-03-18
      
      The following pull-request contains BPF updates for your *net* tree.
      
      We've added 10 non-merge commits during the last 4 day(s) which contain
      a total of 14 files changed, 336 insertions(+), 94 deletions(-).
      
      The main changes are:
      
      1) Fix fexit/fmod_ret trampoline for sleepable programs, and also fix a ftrace
         splat in modify_ftrace_direct() on address change, from Alexei Starovoitov.
      
      2) Fix two oob speculation possibilities that allows unprivileged to leak mem
         via side-channel, from Piotr Krysiuk and Daniel Borkmann.
      
      3) Fix libbpf's netlink handling wrt SOCK_CLOEXEC, from Kumar Kartikeya Dwivedi.
      
      4) Fix libbpf's error handling on failure in getting section names, from Namhyung Kim.
      
      5) Fix tunnel collect_md BPF selftest wrt Geneve option handling, from Hangbin Liu.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e65eaded
  2. 17 Mar, 2021 12 commits
  3. 16 Mar, 2021 26 commits