Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
authorDavid S. Miller <davem@davemloft.net>
Sat, 26 May 2018 23:46:15 +0000 (19:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 May 2018 23:46:15 +0000 (19:46 -0400)
Lots of easy overlapping changes in the confict
resolutions here.

Signed-off-by: David S. Miller <davem@davemloft.net>
24 files changed:
1  2 
MAINTAINERS
arch/x86/include/asm/nospec-branch.h
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/freescale/fec_ptp.c
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c
drivers/net/phy/bcm-phy-lib.c
drivers/net/tun.c
drivers/net/virtio_net.c
drivers/net/wireless/mac80211_hwsim.c
include/linux/bpf_verifier.h
include/net/sctp/sctp.h
include/uapi/linux/nl80211.h
kernel/bpf/verifier.c
net/batman-adv/multicast.c
net/ipv4/fib_frontend.c
net/ipv4/ip_sockglue.c
net/packet/af_packet.c
net/sched/cls_api.c
net/sctp/socket.c
net/wireless/nl80211.c
net/wireless/reg.c
security/selinux/hooks.c

diff --cc MAINTAINERS
@@@ -9019,8 -9025,8 +9024,8 @@@ W:      http://www.mellanox.co
  Q:    http://patchwork.ozlabs.org/project/netdev/list/
  F:    drivers/net/ethernet/mellanox/mlx5/core/en_*
  
 -MELLANOX ETHERNET INNOVA DRIVER
 +MELLANOX ETHERNET INNOVA DRIVERS
M:    Boris Pismenny <borisp@mellanox.com>
R:    Boris Pismenny <borisp@mellanox.com>
  L:    netdev@vger.kernel.org
  S:    Supported
  W:    http://www.mellanox.com
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -2350,23 -2380,29 +2397,46 @@@ static int prepare_func_exit(struct bpf
        return 0;
  }
  
 +static void do_refine_retval_range(struct bpf_reg_state *regs, int ret_type,
 +                                 int func_id,
 +                                 struct bpf_call_arg_meta *meta)
 +{
 +      struct bpf_reg_state *ret_reg = &regs[BPF_REG_0];
 +
 +      if (ret_type != RET_INTEGER ||
 +          (func_id != BPF_FUNC_get_stack &&
 +           func_id != BPF_FUNC_probe_read_str))
 +              return;
 +
 +      ret_reg->smax_value = meta->msize_smax_value;
 +      ret_reg->umax_value = meta->msize_umax_value;
 +      __reg_deduce_bounds(ret_reg);
 +      __reg_bound_offset(ret_reg);
 +}
 +
+ static int
+ record_func_map(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta,
+               int func_id, int insn_idx)
+ {
+       struct bpf_insn_aux_data *aux = &env->insn_aux_data[insn_idx];
+       if (func_id != BPF_FUNC_tail_call &&
+           func_id != BPF_FUNC_map_lookup_elem)
+               return 0;
+       if (meta->map_ptr == NULL) {
+               verbose(env, "kernel subsystem misconfigured verifier\n");
+               return -EINVAL;
+       }
+       if (!BPF_MAP_PTR(aux->map_state))
+               bpf_map_ptr_store(aux, meta->map_ptr,
+                                 meta->map_ptr->unpriv_array);
+       else if (BPF_MAP_PTR(aux->map_state) != meta->map_ptr)
+               bpf_map_ptr_store(aux, BPF_MAP_PTR_POISON,
+                                 meta->map_ptr->unpriv_array);
+       return 0;
+ }
  static int check_helper_call(struct bpf_verifier_env *env, int func_id, int insn_idx)
  {
        const struct bpf_func_proto *fn = NULL;
Simple merge
@@@ -647,9 -649,7 +647,10 @@@ const struct nla_policy rtm_ipv4_policy
        [RTA_ENCAP]             = { .type = NLA_NESTED },
        [RTA_UID]               = { .type = NLA_U32 },
        [RTA_MARK]              = { .type = NLA_U32 },
+       [RTA_TABLE]             = { .type = NLA_U32 },
 +      [RTA_IP_PROTO]          = { .type = NLA_U8 },
 +      [RTA_SPORT]             = { .type = NLA_U16 },
 +      [RTA_DPORT]             = { .type = NLA_U16 },
  };
  
  static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge