[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161103.153457.2072176771493256903.davem@davemloft.net>
Date: Thu, 03 Nov 2016 15:34:57 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, hans.westgaard.ry@...cle.com,
haakon.bugge@...cle.com
Subject: Re: [PATCH net] tcp: fix potential memory corruption
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 02 Nov 2016 07:53:17 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> Imagine initial value of max_skb_frags is 17, and last
> skb in write queue has 15 frags.
>
> Then max_skb_frags is lowered to 14 or smaller value.
>
> tcp_sendmsg() will then be allowed to add additional page frags
> and eventually go past MAX_SKB_FRAGS, overflowing struct
> skb_shared_info.
>
> Fixes: 5f74f82ea34c ("net:Add sysctl_max_skb_frags")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists