Linux 4.14.83
Greg KH
maintainerI'm announcing the release of the 4.14.83 kernel.
All users of the 4.14 kernel series must upgrade.
The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/boot/dts/r8a7791.dtsi | 2 arch/arm/boot/dts/r8a7793.dtsi | 2 arch/x86/kernel/cpu/bugs.c | 57 ++---------------------- drivers/net/dsa/microchip/ksz_common.c | 10 ++-- drivers/net/ethernet/broadcom/bcmsysport.c | 15 ++---- drivers/net/ethernet/broadcom/tg3.c | 18 ++++++- drivers/net/ethernet/ibm/ibmvnic.c | 2 drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 6 +- drivers/net/phy/mdio-gpio.c | 10 ++-- drivers/net/tun.c | 6 ++ drivers/net/usb/smsc95xx.c | 9 +++ include/uapi/linux/sctp.h | 2 kernel/cpu.c | 11 ---- net/core/dev.c | 4 + net/core/flow_dissector.c | 4 - net/ipv4/inet_fragment.c | 28 ++++++----- net/ipv4/ip_tunnel_core.c | 2 net/ipv6/route.c | 7 ++ net/sctp/socket.c | 26 ++-------- net/sctp/stream.c | 1 22 files changed, 95 insertions(+), 130 deletions(-)
Chris Paterson (2):
ARM: dts: r8a7791: Correct critical CPU temperature
ARM: dts: r8a7793: Correct critical CPU temperature
David Ahern (1):
ipv6: Fix PMTU updates for UDP/raw sockets in presence of VRF
Eric Dumazet (2):
net-gro: reset skb->pkt_type in napi_reuse_skb()
inet: frags: better deal with smp races
Florian Fainelli (1):
net: systemport: Protect stop from timeout
Frieder Schrempf (1):
usbnet: smsc95xx: disable carrier check while suspending
Greg Kroah-Hartman (2):
Revert "x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation" Linux 4.14.83
Martin Schiller (1):
net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs
Matthew Cover (1):
tuntap: fix multiqueue rx
Michał Mirosław (1):
ibmvnic: fix accelerated VLAN handling
Sabrina Dubroca (1):
ip_tunnel: don't force DF when MTU is locked
Shalom Toledo (1):
mlxsw: spectrum: Fix IP2ME CPU policer configuration
Siva Reddy Kallam (1):
tg3: Add PHY reset for 5717/5719/5720 in change ring and flow control paths
Stefan Wahren (1):
net: smsc95xx: Fix MTU range
Subash Abhinov Kasiviswanathan (1):
net: qualcomm: rmnet: Fix incorrect assignment of real_dev
Tristram Ha (1):
net: dsa: microchip: initialize mutex before use
Xin Long (3):
sctp: not allow to set asoc prsctp_enable by sockopt
sctp: fix strchange_flags name for Stream Change Event
sctp: not increase stream's incnt before sending addstrm_in request
배석진 (1):
flow_dissector: do not dissect l4 ports for fragments
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 82 +SUBLEVEL = 83 EXTRAVERSION = NAME = Petit Gorille
arch/arm/boot/dts/r8a7791.dtsi +1 -1
@@ -91,7 +91,7 @@ trips { cpu-crit { - temperature = <115000>; + temperature = <95000>; hysteresis = <0>; type = "critical"; };
arch/arm/boot/dts/r8a7793.dtsi +1 -1
@@ -88,7 +88,7 @@ trips { cpu-crit { - temperature = <115000>; + temperature = <95000>; hysteresis = <0>; type = "critical"; };
arch/x86/kernel/cpu/bugs.c +6 -51
91 lines not on this page · raw message
drivers/net/dsa/microchip/ksz_common.c +5 -5
@@ -1104,11 +1104,6 @@ static int ksz_switch_init(struct ksz_device *dev) {int i; -mutex_init (&dev->reg_mutex); -mutex_init (&dev->stats_mutex); -mutex_init (&dev->alu_mutex); -mutex_init (&dev->vlan_mutex); - dev->ds->ops = &ksz_switch_ops;for (i =0 ; i <ARRAY_SIZE (ksz_switch_chips); i++) {
@@ -1193,6 +1188,11 @@ int ksz_switch_register(struct ksz_device *dev)if (dev->pdata) dev->chip_id = dev->pdata->chip_id; +mutex_init (&dev->reg_mutex); +mutex_init (&dev->stats_mutex); +mutex_init (&dev->alu_mutex); +mutex_init (&dev->vlan_mutex); +if (ksz_switch_detect (dev))return -EINVAL ;
drivers/net/ethernet/broadcom/bcmsysport.c +7 -8
@@ -1774,9 +1774,6 @@ static void bcm_sysport_netif_start(struct net_device *dev)intrl2_1_mask_clear (priv,0xffffffff ); elseintrl2_0_mask_clear (priv ,INTRL2_0_TDMA_MBDONE_MASK ); - -/* Last call before we start the real business */ -netif_tx_start_all_queues (dev); }static void rbuf_init (struct bcm_sysport_priv *priv)
@@ -1922,6 +1919,8 @@ static int bcm_sysport_open(struct net_device *dev)bcm_sysport_netif_start (dev); +netif_tx_start_all_queues (dev); +return 0 ; out_clear_rx_int:
@@ -1945,7 +1944,7 @@ static void bcm_sysport_netif_stop(struct net_device *dev)struct bcm_sysport_priv *priv =netdev_priv (dev);/* stop all software from updating hardware */ -netif_tx_stop_all_queues (dev); +netif_tx_disable (dev);napi_disable (&priv->napi);phy_stop (dev->phydev);
@@ -2267,12 +2266,12 @@ static int bcm_sysport_suspend(struct device *d)if (!netif_running (dev))return 0 ; +netif_device_detach (dev); +bcm_sysport_netif_stop (dev);phy_suspend (dev->phydev); -netif_device_detach (dev); -/* Disable UniMAC RX */ umac_enable_set (priv,CMD_RX_EN ,0 );
@@ -2356,8 +2355,6 @@ static int bcm_sysport_resume(struct device *d) goto out_free_rx_ring; } -netif_device_attach (dev); -/* RX pipe enable */ topctrl_writel (priv,0 ,RX_FLUSH_CNTL );
@@ -2402,6 +2399,8 @@ static int bcm_sysport_resume(struct device *d)bcm_sysport_netif_start (dev); +netif_device_attach (dev); +return 0 ; out_free_rx_ring:
drivers/net/ethernet/broadcom/tg3.c +16 -2
@@ -12395,6 +12395,7 @@ static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *e {struct tg3 *tp =netdev_priv (dev);int i, irq_sync =0 , err =0 ; +bool reset_phy = false; if ((ering->rx_pending > tp->rx_std_ring_mask) || (ering->rx_jumbo_pending > tp->rx_jmb_ring_mask) ||
@@ -12426,7 +12427,13 @@ static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *eif (netif_running (dev)) {tg3_halt (tp,RESET_KIND_SHUTDOWN ,1 ); - err =tg3_restart_hw (tp, false); +/* Reset PHY to avoid PHY lock up */ +if (tg3_asic_rev (tp) ==ASIC_REV_5717 || +tg3_asic_rev (tp) ==ASIC_REV_5719 || +tg3_asic_rev (tp) ==ASIC_REV_5720 ) + reset_phy = true; + + err =tg3_restart_hw (tp, reset_phy);if (!err)tg3_netif_start (tp); }
@@ -12460,6 +12467,7 @@ static int tg3_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam {struct tg3 *tp =netdev_priv (dev);int err =0 ; +bool reset_phy = false;if (tp->link_config.autoneg ==AUTONEG_ENABLE )tg3_warn_mgmt_link_flap (tp);
@@ -12550,7 +12558,13 @@ static int tg3_set_pauseparam(struct net_device *dev, struct ethtool_pauseparamif (netif_running (dev)) {tg3_halt (tp,RESET_KIND_SHUTDOWN ,1 ); - err =tg3_restart_hw (tp, false); +/* Reset PHY to avoid PHY lock up */ +if (tg3_asic_rev (tp) ==ASIC_REV_5717 || +tg3_asic_rev (tp) ==ASIC_REV_5719 || +tg3_asic_rev (tp) ==ASIC_REV_5720 ) + reset_phy = true; + + err =tg3_restart_hw (tp, reset_phy);if (!err)tg3_netif_start (tp); }
drivers/net/ethernet/ibm/ibmvnic.c +1 -1
@@ -1259,7 +1259,7 @@ static int ibmvnic_xmit(struct sk_buff *skb, struct net_device *netdev) tx_crq.v1.sge_len =cpu_to_be32 (skb->len); tx_crq.v1.ioba =cpu_to_be64 (data_dma_addr); -if (adapter->vlan_header_insertion) { +if (adapter->vlan_header_insertion &&skb_vlan_tag_present (skb)) { tx_crq.v1.flags2 |=IBMVNIC_TX_VLAN_INSERT ; tx_crq.v1.vlan_id =cpu_to_be16 (skb->vlan_tci); }
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +0 -1
@@ -3471,7 +3471,6 @@ static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core) burst_size =7 ;break ;case MLXSW_REG_HTGT_TRAP_GROUP_SP_IP2ME : - is_bytes = true; rate =4 *1024 ; burst_size =4 ;break ;
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c +3 -3
@@ -102,12 +102,14 @@ int rmnet_vnd_newlink(u8 id, struct net_device *rmnet_dev,struct rmnet_port *port, struct net_device *real_dev) { - struct rmnet_priv *priv; + struct rmnet_priv *priv = netdev_priv(rmnet_dev);int rc;if (port->rmnet_devices[id])return -EINVAL ; + priv->real_dev = real_dev; + rc =register_netdevice (rmnet_dev);if (!rc) { port->rmnet_devices[id] = rmnet_dev;
@@ -115,9 +117,7 @@ int rmnet_vnd_newlink(u8 id, struct net_device *rmnet_dev, rmnet_dev->rtnl_link_ops = &rmnet_link_ops; - priv =netdev_priv (rmnet_dev); priv->mux_id = id; - priv->real_dev = real_dev;netdev_dbg (rmnet_dev,"rmnet dev created\n" ); }
drivers/net/phy/mdio-gpio.c +5 -5
@@ -79,7 +79,7 @@ static void mdio_dir(struct mdiobb_ctrl *ctrl, int dir)* assume the pin serves as pull-up. If direction is * output, the default value is high. */ -gpiod_set_value (bitbang->mdo,1 ); +gpiod_set_value_cansleep (bitbang->mdo,1 );return ; }
@@ -94,7 +94,7 @@ static int mdio_get(struct mdiobb_ctrl *ctrl)struct mdio_gpio_info *bitbang = container_of(ctrl, struct mdio_gpio_info, ctrl); -return gpiod_get_value (bitbang->mdio); +return gpiod_get_value_cansleep (bitbang->mdio); }static void mdio_set (struct mdiobb_ctrl *ctrl,int what)
@@ -103,9 +103,9 @@ static void mdio_set(struct mdiobb_ctrl *ctrl, int what) container_of(ctrl, struct mdio_gpio_info, ctrl);if (bitbang->mdo) -gpiod_set_value (bitbang->mdo, what); +gpiod_set_value_cansleep (bitbang->mdo, what);else -gpiod_set_value (bitbang->mdio, what); +gpiod_set_value_cansleep (bitbang->mdio, what); }static void mdc_set (struct mdiobb_ctrl *ctrl,int what)
@@ -113,7 +113,7 @@ static void mdc_set(struct mdiobb_ctrl *ctrl, int what)struct mdio_gpio_info *bitbang = container_of(ctrl, struct mdio_gpio_info, ctrl); -gpiod_set_value (bitbang->mdc, what); +gpiod_set_value_cansleep (bitbang->mdc, what); }static const struct mdiobb_ops mdio_gpio_ops = {
drivers/net/tun.c +5 -1
@@ -1214,6 +1214,7 @@ static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile,if (!rx_batched || (!more &&skb_queue_empty (queue))) {local_bh_disable (); +skb_record_rx_queue (skb, tfile->queue_index);netif_receive_skb (skb);local_bh_enable ();return ;
@@ -1233,8 +1234,11 @@ static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile,struct sk_buff *nskb;local_bh_disable (); -while ((nskb =__skb_dequeue (&process_queue))) +while ((nskb =__skb_dequeue (&process_queue))) { +skb_record_rx_queue (nskb, tfile->queue_index);netif_receive_skb (nskb); + } +skb_record_rx_queue (skb, tfile->queue_index);netif_receive_skb (skb);local_bh_enable (); }
drivers/net/usb/smsc95xx.c +9 -0
@@ -1321,6 +1321,8 @@ static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf) dev->net->ethtool_ops = &smsc95xx_ethtool_ops; dev->net->flags |=IFF_MULTICAST ; dev->net->hard_header_len +=SMSC95XX_TX_OVERHEAD_CSUM ; + dev->net->min_mtu =ETH_MIN_MTU ; + dev->net->max_mtu =ETH_DATA_LEN ; dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; pdata->dev = dev;
@@ -1598,6 +1600,8 @@ static int smsc95xx_suspend(struct usb_interface *intf, pm_message_t message)return ret; } +cancel_delayed_work_sync (&pdata->carrier_check); +if (pdata->suspend_flags) {netdev_warn (dev->net,"error during last resume\n" ); pdata->suspend_flags =0 ;
@@ -1840,6 +1844,11 @@ static int smsc95xx_suspend(struct usb_interface *intf, pm_message_t message)*/ if (ret &&PMSG_IS_AUTO (message))usbnet_resume (intf); + +if (ret) +schedule_delayed_work (&pdata->carrier_check, +CARRIER_CHECK_DELAY ); +return ret; }
include/uapi/linux/sctp.h +2 -0
@@ -519,6 +519,8 @@ struct sctp_assoc_reset_event {#define SCTP_ASSOC_CHANGE_DENIED 0x0004#define SCTP_ASSOC_CHANGE_FAILED 0x0008 +#define SCTP_STREAM_CHANGE_DENIED SCTP_ASSOC_CHANGE_DENIED +#define SCTP_STREAM_CHANGE_FAILED SCTP_ASSOC_CHANGE_FAILEDstruct sctp_stream_change_event {__u16 strchange_type;__u16 strchange_flags;
kernel/cpu.c +1 -10
@@ -2045,12 +2045,6 @@ static void cpuhp_online_cpu_device(unsigned int cpu)kobject_uevent (&dev->kobj,KOBJ_ONLINE ); } -/* -* Architectures that need SMT-specific errata handling during SMT hotplug -* should override this. -*/ -void __weak arch_smt_update (void ) { }; -static int cpuhp_smt_disable (enum cpuhp_smt_control ctrlval) {int cpu, ret =0 ;
@@ -2077,10 +2071,8 @@ static int cpuhp_smt_disable(enum cpuhp_smt_control ctrlval)*/ cpuhp_offline_cpu_device (cpu); } -if (!ret) { +if (!ret) cpu_smt_control = ctrlval; -arch_smt_update (); - }cpu_maps_update_done ();return ret; }
@@ -2091,7 +2083,6 @@ static int cpuhp_smt_enable(void)cpu_maps_update_begin (); cpu_smt_control =CPU_SMT_ENABLED ; -arch_smt_update ();for_each_present_cpu (cpu) {/* Skip online CPUs and CPUs on offline nodes */ if (cpu_online (cpu) || !node_online (cpu_to_node (cpu)))
net/core/dev.c +4 -0
@@ -4993,6 +4993,10 @@ static void napi_reuse_skb(struct napi_struct *napi, struct sk_buff *skb) skb->vlan_tci =0 ; skb->dev = napi->dev; skb->skb_iif =0 ; + +/* eth_type_trans() assumes pkt_type is PACKET_HOST */ + skb->pkt_type =PACKET_HOST ; + skb->encapsulation =0 ;skb_shinfo (skb)->gso_type =0 ; skb->truesize =SKB_TRUESIZE (skb_end_offset (skb));
net/core/flow_dissector.c +2 -2
@@ -838,8 +838,8 @@ bool __skb_flow_dissect(const struct sk_buff *skb,break ; } -if (dissector_uses_key (flow_dissector, -FLOW_DISSECTOR_KEY_PORTS )) { +if (dissector_uses_key (flow_dissector,FLOW_DISSECTOR_KEY_PORTS ) && + !(key_control->flags &FLOW_DIS_IS_FRAGMENT )) { key_ports =skb_flow_dissector_target (flow_dissector,FLOW_DISSECTOR_KEY_PORTS , target_container);
net/ipv4/inet_fragment.c +15 -13
@@ -180,21 +180,22 @@ static struct inet_frag_queue *inet_frag_alloc(struct netns_frags *nf, }static struct inet_frag_queue *inet_frag_create (struct netns_frags *nf, -void *arg) +void *arg, +struct inet_frag_queue **prev) {struct inet_frags *f = nf->f;struct inet_frag_queue *q; -int err; q =inet_frag_alloc (nf, f, arg); -if (!q) +if (!q) { + *prev =ERR_PTR (-ENOMEM );return NULL ; - + }mod_timer (&q->timer, jiffies + nf->timeout); - err =rhashtable_insert_fast (&nf->rhashtable, &q->node, - f->rhash_params); -if (err <0 ) { + *prev =rhashtable_lookup_get_insert_key (&nf->rhashtable, &q->key, + &q->node, f->rhash_params); +if (*prev) { q->flags |=INET_FRAG_COMPLETE ;inet_frag_kill (q);inet_frag_destroy (q);
@@ -206,19 +207,20 @@ static struct inet_frag_queue *inet_frag_create(struct netns_frags *nf,/* TODO : call from rcu_read_lock() and no longer use refcount_inc_not_zero() */ struct inet_frag_queue *inet_frag_find (struct netns_frags *nf,void *key) { -struct inet_frag_queue *fq; +struct inet_frag_queue *fq =NULL , *prev;rcu_read_lock (); - fq =rhashtable_lookup (&nf->rhashtable, key, nf->f->rhash_params); -if (fq) { + prev =rhashtable_lookup (&nf->rhashtable, key, nf->f->rhash_params); +if (!prev) + fq =inet_frag_create (nf, key, &prev); +if (prev && !IS_ERR (prev)) { + fq = prev;if (!refcount_inc_not_zero (&fq->refcnt)) fq =NULL ; -rcu_read_unlock (); -return fq; }rcu_read_unlock (); -return inet_frag_create (nf, key); +return fq; }EXPORT_SYMBOL (inet_frag_find);
net/ipv4/ip_tunnel_core.c +1 -1
@@ -80,7 +80,7 @@ void iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb, iph->version =4 ; iph->ihl =sizeof (struct iphdr ) >>2 ; - iph->frag_off = df; + iph->frag_off =ip_mtu_locked (&rt->dst) ?0 : df; iph->protocol = proto; iph->tos = tos; iph->daddr = dst;
net/ipv6/route.c +5 -2
@@ -1547,10 +1547,13 @@ EXPORT_SYMBOL_GPL(ip6_update_pmtu);void ip6_sk_update_pmtu (struct sk_buff *skb,struct sock *sk,__be32 mtu) { +int oif = sk->sk_bound_dev_if;struct dst_entry *dst; -ip6_update_pmtu (skb,sock_net (sk), mtu, - sk->sk_bound_dev_if, sk->sk_mark, sk->sk_uid); +if (!oif && skb->dev) + oif =l3mdev_master_ifindex (skb->dev); + +ip6_update_pmtu (skb,sock_net (sk), mtu, oif, sk->sk_mark, sk->sk_uid); dst =__sk_dst_get (sk); if (!dst || !dst->obsolete ||
net/sctp/socket.c +5 -21
@@ -3750,32 +3750,16 @@ static int sctp_setsockopt_pr_supported(struct sock *sk, unsigned int optlen) {struct sctp_assoc_value params; -struct sctp_association *asoc; -int retval = -EINVAL ;if (optlen !=sizeof (params)) - goto out; - -if (copy_from_user (¶ms, optval, optlen)) { - retval = -EFAULT ; - goto out; - } - - asoc =sctp_id2assoc (sk, params.assoc_id); -if (asoc) { - asoc->prsctp_enable = !!params.assoc_value; - }else if (!params.assoc_id) { -struct sctp_sock *sp =sctp_sk (sk); +return -EINVAL ; - sp->ep->prsctp_enable = !!params.assoc_value; - }else { - goto out; - } +if (copy_from_user (¶ms, optval, optlen)) +return -EFAULT ; - retval =0 ; +sctp_sk (sk)->ep->prsctp_enable = !!params.assoc_value; -out: -return retval; +return 0 ; } static int sctp_setsockopt_default_prinfo(struct sock *sk,
net/sctp/stream.c +0 -1
@@ -310,7 +310,6 @@ int sctp_send_add_streams(struct sctp_association *asoc, goto out; } - stream->incnt = incnt; stream->outcnt = outcnt; asoc->strreset_outstanding = !!out + !!in;