Message ID | 1322857369.2762.63.camel@edumazet-laptop |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
From: Eric Dumazet <eric.dumazet@gmail.com> Date: Fri, 02 Dec 2011 21:22:49 +0100 > Le vendredi 02 décembre 2011 à 13:40 -0500, David Miller a écrit : > >> Yes, for non-SG this always was technically possible. >> > > Yes this can, I reproduced it very easily. > > I find this hard to believe... Grrr :-) Ok, I'll think about this some more. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 58f69ac..92ce7c3 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -847,6 +847,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, /* Build TCP header and checksum it. */ th = tcp_hdr(skb); + WARN_ON((((unsigned long)th) & 3) != 0); th->source = inet->inet_sport; th->dest = inet->inet_dport; th->seq = htonl(tcb->seq);