Linux 4.0.1
Greg KH
maintainerI'm announcing the release of the 4.0.1 kernel.
All users of the 4.0 kernel series must upgrade.
The updated 4.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.0.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/bnx2x/bnx2x.h | 137 ++++++++---------------- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 9 - drivers/net/vxlan.c | 20 +-- fs/exec.c | 76 ++++++++----- kernel/bpf/verifier.c | 3 net/core/skbuff.c | 10 + net/ipv4/geneve.c | 8 - net/ipv4/tcp_output.c | 2 9 files changed, 129 insertions(+), 138 deletions(-)
Alexei Starovoitov (1):
bpf: fix verifier memory corruption
Eric Dumazet (2):
tcp: tcp_make_synack() should clear skb->tstamp
bnx2x: Fix busy_poll vs netpoll
Greg Kroah-Hartman (1):
Linux 4.0.1
Herbert Xu (2):
Revert "net: Reset secmark when scrubbing packet"
skbuff: Do not scrub skb mark within the same name space
Jann Horn (1):
fs: take i_mutex during prepare_binprm for set[ug]id executables
Jesse Gross (1):
udptunnels: Call handle_offloads after inserting vlan tag.
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 0 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Hurr durr I'ma sheep
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +51 -86
193 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +5 -4
@@ -1849,7 +1849,7 @@ static void bnx2x_napi_enable_cnic(struct bnx2x *bp)int i;for_each_rx_queue_cnic (bp, i) { -bnx2x_fp_init_lock (&bp->fp[i]); +bnx2x_fp_busy_poll_init (&bp->fp[i]);napi_enable (&bnx2x_fp (bp, i, napi)); } }
@@ -1859,7 +1859,7 @@ static void bnx2x_napi_enable(struct bnx2x *bp)int i;for_each_eth_queue (bp, i) { -bnx2x_fp_init_lock (&bp->fp[i]); +bnx2x_fp_busy_poll_init (&bp->fp[i]);napi_enable (&bnx2x_fp (bp, i, napi)); } }
@@ -3191,9 +3191,10 @@ static int bnx2x_poll(struct napi_struct *napi, int budget) } } +bnx2x_fp_unlock_napi (fp); +/* Fall out from the NAPI loop if needed */ -if (!bnx2x_fp_unlock_napi (fp) && - !(bnx2x_has_rx_work (fp) ||bnx2x_has_tx_work (fp))) { +if (!(bnx2x_has_rx_work (fp) ||bnx2x_has_tx_work (fp))) {/* No need to update SB for FCoE L2 ring as long as * it's connected to the default SB and the SB
drivers/net/vxlan.c +10 -10
@@ -1713,12 +1713,6 @@ static int vxlan6_xmit_skb(struct dst_entry *dst, struct sk_buff *skb, } } - skb =iptunnel_handle_offloads (skb, udp_sum, type); -if (IS_ERR (skb)) { - err = -EINVAL ; - goto err; - } -skb_scrub_packet (skb, xnet); min_headroom =LL_RESERVED_SPACE (dst->dev) + dst->header_len
@@ -1738,6 +1732,12 @@ static int vxlan6_xmit_skb(struct dst_entry *dst, struct sk_buff *skb, goto err; } + skb =iptunnel_handle_offloads (skb, udp_sum, type); +if (IS_ERR (skb)) { + err = -EINVAL ; + goto err; + } + vxh = (struct vxlanhdr *)__skb_push (skb,sizeof (*vxh)); vxh->vx_flags =htonl (VXLAN_HF_VNI ); vxh->vx_vni = md->vni;
@@ -1798,10 +1798,6 @@ int vxlan_xmit_skb(struct rtable *rt, struct sk_buff *skb, } } - skb =iptunnel_handle_offloads (skb, udp_sum, type); -if (IS_ERR (skb)) -return PTR_ERR (skb); - min_headroom =LL_RESERVED_SPACE (rt->dst.dev) + rt->dst.header_len +VXLAN_HLEN +sizeof (struct iphdr ) + (skb_vlan_tag_present (skb) ?VLAN_HLEN :0 );
@@ -1817,6 +1813,10 @@ int vxlan_xmit_skb(struct rtable *rt, struct sk_buff *skb,if (WARN_ON (!skb))return -ENOMEM ; + skb =iptunnel_handle_offloads (skb, udp_sum, type); +if (IS_ERR (skb)) +return PTR_ERR (skb); + vxh = (struct vxlanhdr *)__skb_push (skb,sizeof (*vxh)); vxh->vx_flags =htonl (VXLAN_HF_VNI ); vxh->vx_vni = md->vni;
fs/exec.c +48 -28
90 lines not on this page · raw message
kernel/bpf/verifier.c +2 -1
@@ -1380,7 +1380,8 @@ peek_stack:/* tell verifier to check for equivalent states * after every call and jump */ - env->explored_states[t +1 ] =STATE_LIST_MARK ; +if (t +1 < insn_cnt) + env->explored_states[t +1 ] =STATE_LIST_MARK ; }else {/* conditional jump with two edges */ ret =push_insn (t, t +1 ,FALLTHROUGH , env);
net/core/skbuff.c +6 -4
@@ -4169,19 +4169,21 @@ EXPORT_SYMBOL(skb_try_coalesce);*/ void skb_scrub_packet (struct sk_buff *skb,bool xnet) { -if (xnet) -skb_orphan (skb); skb->tstamp.tv64 =0 ; skb->pkt_type =PACKET_HOST ; skb->skb_iif =0 ; skb->ignore_df =0 ;skb_dst_drop (skb); - skb->mark =0 ;skb_sender_cpu_clear (skb); -skb_init_secmark (skb);secpath_reset (skb);nf_reset (skb);nf_reset_trace (skb); + +if (!xnet) +return ; + +skb_orphan (skb); + skb->mark =0 ; }EXPORT_SYMBOL_GPL (skb_scrub_packet);
net/ipv4/geneve.c +4 -4
@@ -113,10 +113,6 @@ int geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt,int min_headroom;int err; - skb =udp_tunnel_handle_offloads (skb, csum); -if (IS_ERR (skb)) -return PTR_ERR (skb); - min_headroom =LL_RESERVED_SPACE (rt->dst.dev) + rt->dst.header_len +GENEVE_BASE_HLEN + opt_len +sizeof (struct iphdr ) + (skb_vlan_tag_present (skb) ?VLAN_HLEN :0 );
@@ -131,6 +127,10 @@ int geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt,if (unlikely (!skb))return -ENOMEM ; + skb =udp_tunnel_handle_offloads (skb, csum); +if (IS_ERR (skb)) +return PTR_ERR (skb); + gnvh = (struct genevehdr *)__skb_push (skb,sizeof (*gnvh) + opt_len);geneve_build_header (gnvh, tun_flags, vni, opt_len, opt);
net/ipv4/tcp_output.c +2 -0
@@ -2929,6 +2929,8 @@ struct sk_buff *tcp_make_synack(struct sock *sk, struct dst_entry *dst, }#endif +/* Do not fool tcpdump (if any), clean our debris */ + skb->tstamp.tv64 =0 ;return skb; }EXPORT_SYMBOL (tcp_make_synack);