Linux 3.10.58
Greg KH
maintainerI'm announcing the release of the 3.10.58 kernel.
All users of the 3.10 kernel series must upgrade.
The updated 3.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.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 drivers/net/ethernet/broadcom/tg3.c | 23 +++++- drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 88 +++++++++++++++-------- drivers/net/hyperv/netvsc_drv.c | 3 drivers/usb/core/hub.c | 6 + drivers/usb/core/quirks.c | 4 + drivers/usb/serial/cp210x.c | 2 include/linux/usb/quirks.h | 3 include/net/inet_connection_sock.h | 1 include/net/sctp/command.h | 2 include/net/sock.h | 1 include/net/tcp.h | 1 net/ipv4/tcp_ipv4.c | 5 - net/ipv4/tcp_output.c | 6 - net/ipv6/addrconf.c | 14 +++ net/ipv6/ip6_gre.c | 4 - net/ipv6/sit.c | 6 - net/ipv6/tcp_ipv6.c | 3 net/l2tp/l2tp_ppp.c | 3 net/openvswitch/actions.c | 5 + net/packet/af_packet.c | 17 ++++ net/packet/internal.h | 1 net/sctp/sm_statefuns.c | 19 ++++ 23 files changed, 162 insertions(+), 57 deletions(-)
Andreas Bomholtz (1):
USB: cp210x: add support for Seluxit USB dongle
Eric Dumazet (1):
packet: handle too big packets for PACKET_V3
Gao feng (1):
ipv6: reallocate addrconf router for ipv6 address when lo device up
Greg Kroah-Hartman (1):
Linux 3.10.58
Guillaume Nault (1):
l2tp: fix race while getting PMTU on PPP pseudo-wire
Jiri Benc (1):
openvswitch: fix panic with multiple vlan headers
Joe Savage (1):
USB: serial: cp210x: added Ketra N1 wireless interface support
KY Srinivasan (1):
hyperv: Fix a bug in netvsc_start_xmit()
Lu Baolu (1):
USB: Add device quirk for ASUS T100 Base Station keyboard
Neal Cardwell (1):
tcp: fix tcp_release_cb() to dispatch via address family for mtu_reduced()
Nicolas Dichtel (1):
ip6_gre: fix flowi6_proto value in xmit path
Per Hurtig (1):
tcp: fixing TLP's FIN recovery
Shmulik Ladkani (1):
sit: Fix ipip6_tunnel_lookup device matching criteria
Stanislaw Gruszka (1):
myri10ge: check for DMA mapping errors
Vlad Yasevich (3):
tg3: Work around HW/FW limitations with vlan encapsulated frames
tg3: Allow for recieve of full-size 8021AD frames
sctp: handle association restarts when the socket is closed.
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 57 +SUBLEVEL = 58 EXTRAVERSION = NAME = TOSSUG Baby Fish
drivers/net/ethernet/broadcom/tg3.c +20 -3
@@ -6767,7 +6767,8 @@ static int tg3_rx(struct tg3_napi *tnapi, int budget) skb->protocol =eth_type_trans (skb, tp->dev);if (len > (tp->dev->mtu +ETH_HLEN ) && - skb->protocol !=htons (ETH_P_8021Q )) { + skb->protocol !=htons (ETH_P_8021Q ) && + skb->protocol !=htons (ETH_P_8021AD )) {dev_kfree_skb (skb); goto drop_it_no_recycle; }
@@ -7759,8 +7760,6 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) entry = tnapi->tx_prod; base_flags =0 ; -if (skb->ip_summed ==CHECKSUM_PARTIAL ) - base_flags |=TXD_FLAG_TCPUDP_CSUM ; mss =skb_shinfo (skb)->gso_size;if (mss) {
@@ -7776,6 +7775,13 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) hdr_len =skb_transport_offset (skb) +tcp_hdrlen (skb) -ETH_HLEN ; +/* HW/FW can not correctly segment packets that have been +* vlan encapsulated. +*/ +if (skb->protocol ==htons (ETH_P_8021Q ) || + skb->protocol ==htons (ETH_P_8021AD )) +return tg3_tso_bug (tp, skb); +if (!skb_is_gso_v6 (skb)) { iph->check =0 ; iph->tot_len =htons (mss + hdr_len);
@@ -7822,6 +7828,17 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) base_flags |= tsflags <<12 ; } } + }else if (skb->ip_summed ==CHECKSUM_PARTIAL ) { +/* HW/FW can not correctly checksum packets that have been +* vlan encapsulated. +*/ +if (skb->protocol ==htons (ETH_P_8021Q ) || + skb->protocol ==htons (ETH_P_8021AD )) { +if (skb_checksum_help (skb)) + goto drop; + }else { + base_flags |=TXD_FLAG_TCPUDP_CSUM ; + } } if (tg3_flag(tp, USE_JUMBO_BDFLAG) &&
drivers/net/ethernet/myricom/myri10ge/myri10ge.c +58 -30
146 lines not on this page · raw message
drivers/net/hyperv/netvsc_drv.c +2 -1
@@ -138,6 +138,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)struct hv_netvsc_packet *packet;int ret;unsigned int i, num_pages, npg_data; +u32 skb_length = skb->len;/* Add multipages for skb->data and additional 2 for RNDIS */ npg_data = (((unsigned long)skb->data + skb_headlen(skb) - 1)
@@ -208,7 +209,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) ret =rndis_filter_send (net_device_ctx->device_ctx, packet);if (ret ==0 ) { - net->stats.tx_bytes += skb->len; + net->stats.tx_bytes += skb_length; net->stats.tx_packets++; }else {kfree (packet);
drivers/usb/core/hub.c +4 -2
@@ -1951,8 +1951,10 @@ void usb_set_device_state(struct usb_device *udev, || new_state == USB_STATE_SUSPENDED) ;/* No change to wakeup settings */ else if (new_state == USB_STATE_CONFIGURED) - wakeup = udev->actconfig->desc.bmAttributes - &USB_CONFIG_ATT_WAKEUP ; + wakeup = (udev->quirks & +USB_QUIRK_IGNORE_REMOTE_WAKEUP ) ?0 : + udev->actconfig->desc.bmAttributes & +USB_CONFIG_ATT_WAKEUP ; else wakeup =0 ; }
drivers/usb/core/quirks.c +4 -0
@@ -162,6 +162,10 @@ static const struct usb_device_id usb_interface_quirk_list[] = { { USB_VENDOR_AND_INTERFACE_INFO(0x046d, USB_CLASS_VIDEO, 1, 0), .driver_info = USB_QUIRK_RESET_RESUME }, + /* ASUS Base Station(T100) */ + { USB_DEVICE(0x0b05, 0x17e0), .driver_info = + USB_QUIRK_IGNORE_REMOTE_WAKEUP }, + { } /* terminating entry must be last */ };
drivers/usb/serial/cp210x.c +2 -0
@@ -122,6 +122,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x8665) }, /* AC-Services OBD-IF */ { USB_DEVICE(0x10C4, 0x88A4) }, /* MMB Networks ZigBee USB Device */ { USB_DEVICE(0x10C4, 0x88A5) }, /* Planet Innovation Ingeni ZigBee USB Device */ + { USB_DEVICE(0x10C4, 0x8946) }, /* Ketra N1 Wireless Interface */ { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA70) }, /* Silicon Labs factory default */
@@ -155,6 +156,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */ { USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */ { USB_DEVICE(0x1BE3, 0x07A6) }, /* WAGO 750-923 USB Service Cable */ + { USB_DEVICE(0x1D6F, 0x0010) }, /* Seluxit ApS RF Dongle */ { USB_DEVICE(0x1E29, 0x0102) }, /* Festo CPX-USB */ { USB_DEVICE(0x1E29, 0x0501) }, /* Festo CMSP */ { USB_DEVICE(0x1FB9, 0x0100) }, /* Lake Shore Model 121 Current Source */
include/linux/usb/quirks.h +3 -0
@@ -30,4 +30,7 @@descriptor */ #define USB_QUIRK_DELAY_INIT 0x00000040 +/* device generates spurious wakeup, ignore remote wakeup capability */ +#define USB_QUIRK_IGNORE_REMOTE_WAKEUP 0x00000200 +#endif /* __LINUX_USB_QUIRKS_H */
include/net/inet_connection_sock.h +1 -0
@@ -62,6 +62,7 @@ struct inet_connection_sock_af_ops {void (*addr2sockaddr)(struct sock *sk,struct sockaddr *);int (*bind_conflict)(const struct sock *sk,const struct inet_bind_bucket *tb,bool relax); +void (*mtu_reduced)(struct sock *sk); };/** inet_connection_sock - INET connection oriented sock
include/net/sctp/command.h +1 -1
@@ -118,7 +118,7 @@ typedef enum {* analysis of the state functions, but in reality just taken from * thin air in the hopes othat we don't trigger a kernel panic. */ -#define SCTP_MAX_NUM_COMMANDS 14 +#define SCTP_MAX_NUM_COMMANDS 20 typedef union { __s32 i32;
include/net/sock.h +0 -1
@@ -932,7 +932,6 @@ struct proto { struct sk_buff *skb);void (*release_cb)(struct sock *sk); -void (*mtu_reduced)(struct sock *sk);/* Keeping track of sk's, looking them up, and port selection methods. */ void (*hash)(struct sock *sk);
include/net/tcp.h +1 -0
@@ -460,6 +460,7 @@ extern const u8 *tcp_parse_md5sig_option(const struct tcphdr *th);*/ extern void tcp_v4_send_check (struct sock *sk,struct sk_buff *skb); +void tcp_v4_mtu_reduced (struct sock *sk);extern int tcp_v4_conn_request (struct sock *sk,struct sk_buff *skb); extern struct sock * tcp_create_openreq_child(struct sock *sk, struct request_sock *req,
net/ipv4/tcp_ipv4.c +3 -2
@@ -268,7 +268,7 @@ EXPORT_SYMBOL(tcp_v4_connect);* It can be called through tcp_release_cb() if socket was owned by user * at the time tcp_v4_err() was called to handle ICMP message. */ -static void tcp_v4_mtu_reduced (struct sock *sk) +void tcp_v4_mtu_reduced (struct sock *sk) {struct dst_entry *dst;struct inet_sock *inet =inet_sk (sk);
@@ -298,6 +298,7 @@ static void tcp_v4_mtu_reduced(struct sock *sk)tcp_simple_retransmit (sk); }/* else let the usual retransmit timer handle it */ } +EXPORT_SYMBOL (tcp_v4_mtu_reduced);static void do_redirect (struct sk_buff *skb,struct sock *sk) {
@@ -2142,6 +2143,7 @@ const struct inet_connection_sock_af_ops ipv4_specific = { .compat_setsockopt = compat_ip_setsockopt, .compat_getsockopt = compat_ip_getsockopt, #endif + .mtu_reduced = tcp_v4_mtu_reduced, };EXPORT_SYMBOL (ipv4_specific);
@@ -2867,7 +2869,6 @@ struct proto tcp_prot = { .sendpage = tcp_sendpage, .backlog_rcv = tcp_v4_do_rcv, .release_cb = tcp_release_cb, - .mtu_reduced = tcp_v4_mtu_reduced, .hash = inet_hash, .unhash = inet_unhash, .get_port = inet_csk_get_port,
net/ipv4/tcp_output.c +2 -4
@@ -775,7 +775,7 @@ void tcp_release_cb(struct sock *sk)__sock_put (sk); }if (flags & (1UL <<TCP_MTU_REDUCED_DEFERRED )) { - sk->sk_prot->mtu_reduced (sk); +inet_csk (sk)->icsk_af_ops->mtu_reduced (sk);__sock_put (sk); } }
@@ -2036,9 +2036,7 @@ void tcp_send_loss_probe(struct sock *sk)if (WARN_ON (!skb || !tcp_skb_pcount (skb))) goto rearm_timer; -/* Probe with zero data doesn't trigger fast recovery. */ -if (skb->len >0 ) - err =__tcp_retransmit_skb (sk, skb); + err =__tcp_retransmit_skb (sk, skb);/* Record snd_nxt for loss detection. */ if (likely (!err))
net/ipv6/addrconf.c +12 -2
@@ -2691,8 +2691,18 @@ static void init_loopback(struct net_device *dev)if (sp_ifa->flags & (IFA_F_DADFAILED |IFA_F_TENTATIVE ))continue ; -if (sp_ifa->rt) -continue ; +if (sp_ifa->rt) { +/* This dst has been added to garbage list when +* lo device down, release this obsolete dst and +* reallocate a new router for ifa. +*/ +if (sp_ifa->rt->dst.obsolete >0 ) { +ip6_rt_put (sp_ifa->rt); + sp_ifa->rt =NULL ; + }else { +continue ; + } + } sp_rt =addrconf_dst_alloc (idev, &sp_ifa->addr,0 );
net/ipv6/ip6_gre.c +2 -2
@@ -787,7 +787,7 @@ static inline int ip6gre_xmit_ipv4(struct sk_buff *skb, struct net_device *dev) encap_limit = t->parms.encap_limit;memcpy (&fl6, &t->fl.u.ip6,sizeof (fl6)); - fl6.flowi6_proto =IPPROTO_IPIP ; + fl6.flowi6_proto =IPPROTO_GRE ; dsfield =ipv4_get_dsfield (iph);
@@ -837,7 +837,7 @@ static inline int ip6gre_xmit_ipv6(struct sk_buff *skb, struct net_device *dev) encap_limit = t->parms.encap_limit;memcpy (&fl6, &t->fl.u.ip6,sizeof (fl6)); - fl6.flowi6_proto =IPPROTO_IPV6 ; + fl6.flowi6_proto =IPPROTO_GRE ; dsfield =ipv6_get_dsfield (ipv6h);if (t->parms.flags &IP6_TNL_F_USE_ORIG_TCLASS )
net/ipv6/sit.c +3 -3
@@ -101,19 +101,19 @@ static struct ip_tunnel *ipip6_tunnel_lookup(struct net *net,for_each_ip_tunnel_rcu (t, sitn->tunnels_r_l[h0 ^ h1]) {if (local == t->parms.iph.saddr && remote == t->parms.iph.daddr && - (!dev || !t->parms.link || dev->iflink == t->parms.link) && + (!dev || !t->parms.link || dev->ifindex == t->parms.link) && (t->dev->flags &IFF_UP ))return t; }for_each_ip_tunnel_rcu (t, sitn->tunnels_r[h0]) {if (remote == t->parms.iph.daddr && - (!dev || !t->parms.link || dev->iflink == t->parms.link) && + (!dev || !t->parms.link || dev->ifindex == t->parms.link) && (t->dev->flags &IFF_UP ))return t; }for_each_ip_tunnel_rcu (t, sitn->tunnels_l[h1]) {if (local == t->parms.iph.saddr && - (!dev || !t->parms.link || dev->iflink == t->parms.link) && + (!dev || !t->parms.link || dev->ifindex == t->parms.link) && (t->dev->flags &IFF_UP ))return t; }
net/ipv6/tcp_ipv6.c +2 -1
@@ -1651,6 +1651,7 @@ static const struct inet_connection_sock_af_ops ipv6_specific = { .compat_setsockopt = compat_ipv6_setsockopt, .compat_getsockopt = compat_ipv6_getsockopt, #endif + .mtu_reduced = tcp_v6_mtu_reduced, };#ifdef CONFIG_TCP_MD5SIG
@@ -1682,6 +1683,7 @@ static const struct inet_connection_sock_af_ops ipv6_mapped = { .compat_setsockopt = compat_ipv6_setsockopt, .compat_getsockopt = compat_ipv6_getsockopt, #endif + .mtu_reduced = tcp_v4_mtu_reduced, };#ifdef CONFIG_TCP_MD5SIG
@@ -1919,7 +1921,6 @@ struct proto tcpv6_prot = { .sendpage = tcp_sendpage, .backlog_rcv = tcp_v6_do_rcv, .release_cb = tcp_release_cb, - .mtu_reduced = tcp_v6_mtu_reduced, .hash = tcp_v6_hash, .unhash = inet_unhash, .get_port = inet_csk_get_port,
net/l2tp/l2tp_ppp.c +2 -1
@@ -756,7 +756,8 @@ static int pppol2tp_connect(struct socket *sock, struct sockaddr *uservaddr,/* If PMTU discovery was enabled, use the MTU that was discovered */ dst =sk_dst_get (tunnel->sock);if (dst !=NULL ) { -u32 pmtu =dst_mtu (__sk_dst_get (tunnel->sock)); +u32 pmtu =dst_mtu (dst); +if (pmtu !=0 ) session->mtu = session->mru = pmtu -PPPOL2TP_HEADER_OVERHEAD ;
net/openvswitch/actions.c +5 -0
@@ -40,6 +40,9 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,static int make_writable (struct sk_buff *skb,int write_len) { +if (!pskb_may_pull (skb, write_len)) +return -ENOMEM ; +if (!skb_cloned (skb) ||skb_clone_writable (skb, write_len))return 0 ;
@@ -68,6 +71,8 @@ static int __pop_vlan_tci(struct sk_buff *skb, __be16 *current_tci)vlan_set_encap_proto (skb, vhdr); skb->mac_header +=VLAN_HLEN ; +if (skb_network_offset (skb) <ETH_HLEN ) +skb_set_network_header (skb,ETH_HLEN );skb_reset_mac_len (skb);return 0 ;
net/packet/af_packet.c +17 -0
@@ -565,6 +565,7 @@ static void init_prb_bdqc(struct packet_sock *po, p1->tov_in_jiffies =msecs_to_jiffies (p1->retire_blk_tov); p1->blk_sizeof_priv = req_u->req3.tp_sizeof_priv; + p1->max_frame_len = p1->kblk_size -BLK_PLUS_PRIV (p1->blk_sizeof_priv);prb_init_ft_ops (p1, req_u);prb_setup_retire_blk_timer (po, tx_ring);prb_open_block (p1, pbd);
@@ -1803,6 +1804,18 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev,if ((int )snaplen <0 ) snaplen =0 ; } + }else if (unlikely (macoff + snaplen > +GET_PBDQC_FROM_RB (&po->rx_ring)->max_frame_len)) { +u32 nval; + + nval =GET_PBDQC_FROM_RB (&po->rx_ring)->max_frame_len - macoff; +pr_err_once ("tpacket_rcv: packet too big, clamped from %u to %u. macoff=%u\n" , + snaplen, nval, macoff); + snaplen = nval; +if (unlikely ((int )snaplen <0 )) { + snaplen =0 ; + macoff =GET_PBDQC_FROM_RB (&po->rx_ring)->max_frame_len; + } }spin_lock (&sk->sk_receive_queue.lock); h.raw = packet_current_rx_frame(po, skb,
@@ -3642,6 +3655,10 @@ static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u, goto out;if (unlikely (req->tp_block_size & (PAGE_SIZE -1 ))) goto out; +if (po->tp_version >=TPACKET_V3 && + (int )(req->tp_block_size - +BLK_PLUS_PRIV (req_u->req3.tp_sizeof_priv)) <=0 ) + goto out;if (unlikely (req->tp_frame_size < po->tp_hdrlen + po->tp_reserve)) goto out;
net/packet/internal.h +1 -0
@@ -29,6 +29,7 @@ struct tpacket_kbdq_core {char *pkblk_start;char *pkblk_end;int kblk_size; +unsigned int max_frame_len;unsigned int knum_blocks;uint64_t knxt_seq_num;char *prev;
net/sctp/sm_statefuns.c +16 -3
@@ -1782,9 +1782,22 @@ static sctp_disposition_t sctp_sf_do_dupcook_a(struct net *net,/* Update the content of current association. */ sctp_add_cmd_sf (commands,SCTP_CMD_UPDATE_ASSOC ,SCTP_ASOC (new_asoc));sctp_add_cmd_sf (commands,SCTP_CMD_EVENT_ULP ,SCTP_ULPEVENT (ev)); -sctp_add_cmd_sf (commands,SCTP_CMD_NEW_STATE , -SCTP_STATE (SCTP_STATE_ESTABLISHED )); -sctp_add_cmd_sf (commands,SCTP_CMD_REPLY ,SCTP_CHUNK (repl)); +if (sctp_state (asoc,SHUTDOWN_PENDING ) && + (sctp_sstate (asoc->base.sk,CLOSING ) || +sock_flag (asoc->base.sk,SOCK_DEAD ))) { +/* if were currently in SHUTDOWN_PENDING, but the socket +* has been closed by user, don't transition to ESTABLISHED. +* Instead trigger SHUTDOWN bundled with COOKIE_ACK. +*/ +sctp_add_cmd_sf (commands,SCTP_CMD_REPLY ,SCTP_CHUNK (repl)); +return sctp_sf_do_9_2_start_shutdown (net, ep, asoc, +SCTP_ST_CHUNK (0 ),NULL , + commands); + }else { +sctp_add_cmd_sf (commands,SCTP_CMD_NEW_STATE , +SCTP_STATE (SCTP_STATE_ESTABLISHED )); +sctp_add_cmd_sf (commands,SCTP_CMD_REPLY ,SCTP_CHUNK (repl)); + }return SCTP_DISPOSITION_CONSUME ; nomem_ev: