[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111204.132126.654109006321344175.davem@davemloft.net>
Date: Sun, 04 Dec 2011 13:21:26 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: subramanian.vijay@...il.com, therbert@...gle.com,
netdev@...r.kernel.org
Subject: Re: [PATCH] tcp: take care of misalignments
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sun, 04 Dec 2011 08:39:53 +0100
> [PATCH] tcp: take care of misalignments
>
> We discovered that TCP stack could retransmit misaligned skbs if a
> malicious peer acknowledged sub MSS frame. This currently can happen
> only if output interface is non SG enabled : If SG is enabled, tcp
> builds headless skbs (all payload is included in fragments), so the tcp
> trimming process only removes parts of skb fragments, header stay
> aligned.
>
> Some arches cant handle misalignments, so force a head reallocation and
> shrink headroom to MAX_TCP_HEADER.
>
> Dont care about misaligments on x86 and PPC (or other arches setting
> NET_IP_ALIGN to 0)
>
> This patch introduces __pskb_copy() which can specify the headroom of
> new head, and pskb_copy() becomes a wrapper on top of __pskb_copy()
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Looks good, applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists