Linux 4.4.43
Greg KH
maintainerI'm announcing the release of the 4.4.43 kernel.
All users of the 4.4 kernel series must upgrade.
The updated 4.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.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/mach-omap2/omap-mpuss-lowpower.c | 5 - arch/arm/mach-zynq/common.c | 2 arch/powerpc/kernel/misc_32.S | 2 drivers/hid/hid-cypress.c | 3 drivers/isdn/gigaset/ser-gigaset.c | 4 - drivers/net/ethernet/mellanox/mlx5/core/main.c | 10 ++ drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 22 +++-- drivers/net/hyperv/netvsc_drv.c | 3 drivers/net/usb/r8152.c | 80 ++++++++++++++++----- drivers/net/vrf.c | 8 ++ drivers/spi/spi-orion.c | 83 ++++++++++++++-------- include/linux/netdevice.h | 9 +- mm/page_alloc.c | 17 ++-- net/core/dev.c | 4 - net/core/drop_monitor.c | 39 +++++++--- net/ipv4/fib_frontend.c | 2 net/ipv4/fib_semantics.c | 9 +- net/ipv4/igmp.c | 7 + net/ipv6/ip6_offload.c | 1 net/ipv6/raw.c | 6 + net/sched/cls_api.c | 4 - sound/firewire/tascam/tascam-stream.c | 2 sound/usb/quirks.c | 1 24 files changed, 236 insertions(+), 89 deletions(-)
Alexander Duyck (1):
ipv4: Do not allow MAIN to be alias for new LOCAL w/ custom rules
Dan Carpenter (1):
ser_gigaset: return -ENOMEM on error instead of success
Daniel Borkmann (1):
net, sched: fix soft lockup in tc_classify
Dave Jones (1):
ipv6: handle -EFAULT from skb_copy_bits
David Ahern (3):
net: vrf: Drop conntrack data after pass through VRF device on Tx
net: ipv4: Fix multipath selection with vrf
net: vrf: do not allow table id 0
Dennis Kadioglu (1):
ALSA: usb-audio: Add a quirk for Plantronics BT600
Eli Cohen (1):
net/mlx5: Avoid shadowing numa_node
Eric Dumazet (1):
gro: use min_t() in skb_gro_reset_offset()
Florian Fainelli (1):
net: stmmac: Fix race between stmmac_drv_probe and stmmac_open
Greg Kroah-Hartman (2):
HID: hid-cypress: validate length of report
Linux 4.4.43
Herbert Xu (2):
gro: Enter slow-path if there is no tailroom
gro: Disable frag0 optimization on IPv6 ext headers
Kyle Roeschley (1):
ARM: zynq: Reserve correct amount of non-DMA RAM
Larry Finger (1):
powerpc: Fix build warning on 32-bit PPC
Michal Tesar (1):
igmp: Make igmp group member RFC 3376 compliant
Noa Osherovich (1):
net/mlx5: Check FW limitations on log_max_qp before setting it
Oliver O'Halloran (1):
mm/init: fix zone boundary creation
Reiter Wolfgang (2):
drop_monitor: add missing call to genlmsg_end
drop_monitor: consider inserted data in genlmsg_end
Takashi Sakamoto (1):
ALSA: firewire-tascam: Fix to handle error from initialization of stream data
Tony Lindgren (1):
ARM: OMAP4+: Fix bad fallthrough for cpuidle
Uwe Kleine-König (1):
spi: mvebu: fix baudrate calculation for armada variant
hayeswang (2):
r8152: split rtl8152_suspend function
r8152: fix rx issue for runtime suspend
stephen hemminger (1):
netvsc: reduce maximum GSO size
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 42 +SUBLEVEL = 43 EXTRAVERSION = NAME = Blurry Fish Butt
arch/arm/mach-omap2/omap-mpuss-lowpower.c +2 -3
@@ -243,10 +243,9 @@ int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state) save_state =1 ;break ;case PWRDM_POWER_RET : -if (IS_PM44XX_ERRATUM (PM_OMAP4_CPU_OSWR_DISABLE )) { +if (IS_PM44XX_ERRATUM (PM_OMAP4_CPU_OSWR_DISABLE )) save_state =0 ; -break ; - } +break ;default :/* * CPUx CSWR is invalid hardware state. Also CPUx OSWR
arch/arm/mach-zynq/common.c +1 -1
@@ -59,7 +59,7 @@ void __iomem *zynq_scu_base;static void __init zynq_memory_init (void ) {if (!__pa (PAGE_OFFSET )) -memblock_reserve (__pa (PAGE_OFFSET ),__pa (swapper_pg_dir)); +memblock_reserve (__pa (PAGE_OFFSET ),0x80000 ); }static struct platform_device zynq_cpuidle_device = {
arch/powerpc/kernel/misc_32.S +1 -1
@@ -313,7 +313,7 @@ _GLOBAL(flush_instruction_cache) lis r3, KERNELBASE@h iccci 0,r3 #endif -#elif CONFIG_FSL_BOOKE +#elif defined(CONFIG_FSL_BOOKE) BEGIN_FTR_SECTION mfspr r3,SPRN_L1CSR0 ori r3,r3,L1CSR0_CFI|L1CSR0_CLFC
drivers/hid/hid-cypress.c +3 -0
@@ -39,6 +39,9 @@ static __u8 *cp_report_fixup(struct hid_device *hdev, __u8 *rdesc,if (!(quirks &CP_RDESC_SWAPPED_MIN_MAX ))return rdesc; +if (*rsize <4 ) +return rdesc; +for (i =0 ; i < *rsize -4 ; i++)if (rdesc[i] ==0x29 && rdesc[i +2 ] ==0x19 ) { rdesc[i] =0x19 ;
drivers/isdn/gigaset/ser-gigaset.c +3 -1
@@ -762,8 +762,10 @@ static int __init ser_gigaset_init(void) driver =gigaset_initdriver (GIGASET_MINOR ,GIGASET_MINORS ,GIGASET_MODULENAME ,GIGASET_DEVNAME , &ops,THIS_MODULE ); -if (!driver) +if (!driver) { + rc = -ENOMEM ; goto error; + } rc =tty_register_ldisc (N_GIGASET_M101 , &gigaset_ldisc);if (rc !=0 ) {
drivers/net/ethernet/mellanox/mlx5/core/main.c +8 -2
@@ -432,6 +432,13 @@ static int handle_hca_cap(struct mlx5_core_dev *dev)MLX5_SET (cmd_hca_cap, set_hca_cap, pkey_table_size,to_fw_pkey_sz (128 )); +/* Check log_max_qp from HCA caps to set in current profile */ +if (MLX5_CAP_GEN_MAX (dev, log_max_qp) < profile[prof_sel].log_max_qp) { +mlx5_core_warn (dev,"log_max_qp value in current profile is %d, changing it to HCA capability limit (%d)\n" , + profile[prof_sel].log_max_qp, +MLX5_CAP_GEN_MAX (dev, log_max_qp)); + profile[prof_sel].log_max_qp =MLX5_CAP_GEN_MAX (dev, log_max_qp); + }if (prof->mask &MLX5_PROF_MASK_QP_SIZE )MLX5_SET (cmd_hca_cap, set_hca_cap, log_max_qp, prof->log_max_qp);
@@ -505,7 +512,6 @@ static int mlx5_irq_set_affinity_hint(struct mlx5_core_dev *mdev, int i)struct mlx5_priv *priv = &mdev->priv;struct msix_entry *msix = priv->msix_arr;int irq = msix[i +MLX5_EQ_VEC_COMP_BASE ].vector; -int numa_node = priv->numa_node;int err;if (!zalloc_cpumask_var (&priv->irq_info[i].mask,GFP_KERNEL )) {
@@ -513,7 +519,7 @@ static int mlx5_irq_set_affinity_hint(struct mlx5_core_dev *mdev, int i)return -ENOMEM ; } -cpumask_set_cpu (cpumask_local_spread (i, numa_node), +cpumask_set_cpu (cpumask_local_spread (i, priv->numa_node), priv->irq_info[i].mask); err =irq_set_affinity_hint (irq, priv->irq_info[i].mask);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +13 -9
@@ -2939,12 +2939,6 @@ int stmmac_dvr_probe(struct device *device,spin_lock_init (&priv->lock);spin_lock_init (&priv->tx_lock); - ret =register_netdev (ndev); -if (ret) { -pr_err ("%s: ERROR %i registering the device\n" , __func__, ret); - goto error_netdev_register; - } -/* If a specific clk_csr value is passed from the platform * this means that the CSR Clock Range selection cannot be * changed at run-time and it is fixed. Viceversa the driver'll try to
@@ -2969,11 +2963,21 @@ int stmmac_dvr_probe(struct device *device, } } -return 0 ; + ret =register_netdev (ndev); +if (ret) { +netdev_err (priv->dev,"%s: ERROR %i registering the device\n" , + __func__, ret); + goto error_netdev_register; + } + +return ret; -error_mdio_register: -unregister_netdev (ndev); error_netdev_register: +if (priv->pcs !=STMMAC_PCS_RGMII && + priv->pcs !=STMMAC_PCS_TBI && + priv->pcs !=STMMAC_PCS_RTBI ) +stmmac_mdio_unregister (ndev); +error_mdio_register:netif_napi_del (&priv->napi); error_hw_init:clk_disable_unprepare (priv->pclk);
drivers/net/hyperv/netvsc_drv.c +3 -0
@@ -40,6 +40,8 @@#include "hyperv_net.h" +/* Restrict GSO size to account for NVGRE */ +#define NETVSC_GSO_MAX_SIZE 62768#define RING_SIZE_MIN 64static int ring_size =128 ;
@@ -852,6 +854,7 @@ static int netvsc_set_channels(struct net_device *net, } goto recover; } +netif_set_gso_max_size (net,NETVSC_GSO_MAX_SIZE ); out:netvsc_open (net);
drivers/net/usb/r8152.c +64 -16
103 lines not on this page · raw message
drivers/net/vrf.c +8 -0
@@ -301,7 +301,9 @@ static netdev_tx_t vrf_process_v4_outbound(struct sk_buff *skb, .flowi4_tos = RT_TOS(ip4h->tos), .flowi4_flags = FLOWI_FLAG_ANYSRC | FLOWI_FLAG_L3MDEV_SRC | FLOWI_FLAG_SKIP_NH_OIF, + .flowi4_proto = ip4h->protocol, .daddr = ip4h->daddr, + .saddr = ip4h->saddr, };if (vrf_send_v4_prep (skb, &fl4, vrf_dev))
@@ -410,6 +412,8 @@ static int vrf_finish_output6(struct net *net, struct sock *sk,struct in6_addr *nexthop;int ret; +nf_reset (skb); + skb->protocol =htons (ETH_P_IPV6 ); skb->dev = dev;
@@ -521,6 +525,8 @@ static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *su32 nexthop;int ret = -EINVAL ; +nf_reset (skb); +/* Be paranoid, rather than too clever. */ if (unlikely (skb_headroom (skb) < hh_len && dev->header_ops)) {struct sk_buff *skb2;
@@ -919,6 +925,8 @@ static int vrf_newlink(struct net *src_net, struct net_device *dev,return -EINVAL ; vrf->tb_id =nla_get_u32 (data[IFLA_VRF_TABLE ]); +if (vrf->tb_id ==RT_TABLE_UNSPEC ) +return -EINVAL ; dev->priv_flags |=IFF_L3MDEV_MASTER ;
drivers/spi/spi-orion.c +54 -29
91 lines not on this page · raw message
include/linux/netdevice.h +7 -2
@@ -2325,14 +2325,19 @@ static inline int skb_gro_header_hard(struct sk_buff *skb, unsigned int hlen)return NAPI_GRO_CB (skb)->frag0_len < hlen; } +static inline void skb_gro_frag0_invalidate (struct sk_buff *skb) +{ +NAPI_GRO_CB (skb)->frag0 =NULL ; +NAPI_GRO_CB (skb)->frag0_len =0 ; +} +static inline void *skb_gro_header_slow (struct sk_buff *skb,unsigned int hlen,unsigned int offset) {if (!pskb_may_pull (skb, hlen))return NULL ; -NAPI_GRO_CB (skb)->frag0 =NULL ; -NAPI_GRO_CB (skb)->frag0_len =0 ; +skb_gro_frag0_invalidate (skb);return skb->data + offset; }
mm/page_alloc.c +10 -7
@@ -5696,15 +5696,18 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn) sizeof(arch_zone_lowest_possible_pfn));memset (arch_zone_highest_possible_pfn,0 ,sizeof (arch_zone_highest_possible_pfn)); - arch_zone_lowest_possible_pfn[0 ] =find_min_pfn_with_active_regions (); - arch_zone_highest_possible_pfn[0 ] = max_zone_pfn[0 ]; -for (i =1 ; i <MAX_NR_ZONES ; i++) { + + start_pfn =find_min_pfn_with_active_regions (); + +for (i =0 ; i <MAX_NR_ZONES ; i++) {if (i ==ZONE_MOVABLE )continue ; - arch_zone_lowest_possible_pfn[i] = - arch_zone_highest_possible_pfn[i-1 ]; - arch_zone_highest_possible_pfn[i] = -max (max_zone_pfn[i], arch_zone_lowest_possible_pfn[i]); + + end_pfn =max (max_zone_pfn[i], start_pfn); + arch_zone_lowest_possible_pfn[i] = start_pfn; + arch_zone_highest_possible_pfn[i] = end_pfn; + + start_pfn = end_pfn; } arch_zone_lowest_possible_pfn[ZONE_MOVABLE ] =0 ; arch_zone_highest_possible_pfn[ZONE_MOVABLE ] =0 ;
net/core/dev.c +3 -1
@@ -4187,7 +4187,9 @@ static void skb_gro_reset_offset(struct sk_buff *skb) pinfo->nr_frags && !PageHighMem(skb_frag_page(frag0))) {NAPI_GRO_CB (skb)->frag0 =skb_frag_address (frag0); -NAPI_GRO_CB (skb)->frag0_len =skb_frag_size (frag0); + NAPI_GRO_CB(skb)->frag0_len = min_t(unsigned int, +skb_frag_size (frag0), + skb->end - skb->tail); } }
net/core/drop_monitor.c +30 -9
@@ -80,6 +80,7 @@ static struct sk_buff *reset_per_cpu_data(struct per_cpu_dm_data *data)struct nlattr *nla;struct sk_buff *skb;unsigned long flags; +void *msg_header; al =sizeof (struct net_dm_alert_msg ); al += dm_hit_limit *sizeof (struct net_dm_drop_point );
@@ -87,21 +88,41 @@ static struct sk_buff *reset_per_cpu_data(struct per_cpu_dm_data *data) skb =genlmsg_new (al,GFP_KERNEL ); -if (skb) { -genlmsg_put (skb,0 ,0 , &net_drop_monitor_family, -0 ,NET_DM_CMD_ALERT ); - nla =nla_reserve (skb,NLA_UNSPEC , -sizeof (struct net_dm_alert_msg )); - msg =nla_data (nla); -memset (msg,0 , al); - }else { -mod_timer (&data->send_timer, jiffies +HZ /10 ); +if (!skb) + goto err; + + msg_header =genlmsg_put (skb,0 ,0 , &net_drop_monitor_family, +0 ,NET_DM_CMD_ALERT ); +if (!msg_header) { +nlmsg_free (skb); + skb =NULL ; + goto err; + } + nla =nla_reserve (skb,NLA_UNSPEC , +sizeof (struct net_dm_alert_msg )); +if (!nla) { +nlmsg_free (skb); + skb =NULL ; + goto err; } + msg =nla_data (nla); +memset (msg,0 , al); + goto out; +err: +mod_timer (&data->send_timer, jiffies +HZ /10 ); +out:spin_lock_irqsave (&data->lock, flags);swap (data->skb, skb);spin_unlock_irqrestore (&data->lock, flags); +if (skb) { +struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data; +struct genlmsghdr *gnlh = (struct genlmsghdr *)nlmsg_data (nlh); + +genlmsg_end (skb,genlmsg_data (gnlh)); + } +return skb; }
net/ipv4/fib_frontend.c +1 -1
@@ -85,7 +85,7 @@ struct fib_table *fib_new_table(struct net *net, u32 id)if (tb)return tb; -if (id ==RT_TABLE_LOCAL ) +if (id ==RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) alias =fib_new_table (net,RT_TABLE_MAIN ); tb =fib_trie_table (id, alias);
net/ipv4/fib_semantics.c +7 -2
@@ -1588,8 +1588,13 @@ void fib_select_multipath(struct fib_result *res, int hash)void fib_select_path (struct net *net,struct fib_result *res,struct flowi4 *fl4,int mp_hash) { +bool oif_check; + + oif_check = (fl4->flowi4_oif ==0 || + fl4->flowi4_flags &FLOWI_FLAG_SKIP_NH_OIF ); +#ifdef CONFIG_IP_ROUTE_MULTIPATH -if (res->fi->fib_nhs >1 && fl4->flowi4_oif ==0 ) { +if (res->fi->fib_nhs >1 && oif_check) {if (mp_hash <0 ) mp_hash =get_hash_from_flowi4 (fl4) >>1 ;
@@ -1599,7 +1604,7 @@ void fib_select_path(struct net *net, struct fib_result *res,#endif if (!res->prefixlen && res->table->tb_num_default >1 && - res->type ==RTN_UNICAST && !fl4->flowi4_oif) + res->type ==RTN_UNICAST && oif_check)fib_select_default (fl4, res);if (!fl4->saddr)
net/ipv4/igmp.c +6 -1
@@ -225,9 +225,14 @@ static void igmp_start_timer(struct ip_mc_list *im, int max_delay)static void igmp_gq_start_timer (struct in_device *in_dev) {int tv =prandom_u32 () % in_dev->mr_maxdelay; +unsigned long exp = jiffies + tv +2 ; + +if (in_dev->mr_gq_running && +time_after_eq (exp, (in_dev->mr_gq_timer).expires)) +return ; in_dev->mr_gq_running =1 ; -if (!mod_timer (&in_dev->mr_gq_timer, jiffies+tv+2 )) +if (!mod_timer (&in_dev->mr_gq_timer, exp))in_dev_hold (in_dev); }
net/ipv6/ip6_offload.c +1 -0
@@ -196,6 +196,7 @@ static struct sk_buff **ipv6_gro_receive(struct sk_buff **head, ops =rcu_dereference (inet6_offloads[proto]);if (!ops || !ops->callbacks.gro_receive) {__pskb_pull (skb,skb_gro_offset (skb)); +skb_gro_frag0_invalidate (skb); proto =ipv6_gso_pull_exthdrs (skb, proto);skb_gro_pull (skb, -skb_transport_offset (skb));skb_reset_transport_header (skb);
net/ipv6/raw.c +5 -1
@@ -589,7 +589,11 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6, } offset +=skb_transport_offset (skb); -BUG_ON (skb_copy_bits (skb, offset, &csum,2 )); + err =skb_copy_bits (skb, offset, &csum,2 ); +if (err <0 ) { +ip6_flush_pending_frames (sk); + goto out; + }/* in case cksum was not initialized */ if (unlikely (csum))
net/sched/cls_api.c +3 -1
@@ -137,13 +137,15 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)unsigned long cl;unsigned long fh;int err; -int tp_created =0 ; +int tp_created;if ((n->nlmsg_type !=RTM_GETTFILTER ) && !netlink_ns_capable (skb, net->user_ns,CAP_NET_ADMIN ))return -EPERM ; replay: + tp_created =0 ; + err =nlmsg_parse (n,sizeof (*t), tca,TCA_MAX ,NULL );if (err <0 )return err;
sound/firewire/tascam/tascam-stream.c +1 -1
@@ -343,7 +343,7 @@ int snd_tscm_stream_init_duplex(struct snd_tscm *tscm)if (err <0 )amdtp_stream_destroy (&tscm->rx_stream); -return 0 ; +return err; }/* At bus reset, streaming is stopped and some registers are clear. */
sound/usb/quirks.c +1 -0
@@ -1136,6 +1136,7 @@ bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip)case USB_ID (0x045E ,0x076F ):/* MS Lifecam HD-6000 */ case USB_ID (0x045E ,0x0772 ):/* MS Lifecam Studio */ case USB_ID (0x045E ,0x0779 ):/* MS Lifecam HD-3000 */ +case USB_ID (0x047F ,0x02F7 ):/* Plantronics BT-600 */ case USB_ID (0x047F ,0x0415 ):/* Plantronics BT-300 */ case USB_ID (0x047F ,0xAA05 ):/* Plantronics DA45 */ case USB_ID (0x04D8 ,0xFEEA ):/* Benchmark DAC1 Pre */