Eric Dumazet ac9e70b17e tcp: fix potential memory corruption
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@google.com>
Cc: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Cc: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-03 15:33:30 -04:00
..
2015-08-25 13:38:50 -07:00
2016-04-27 22:48:24 -04:00
2016-10-20 14:32:22 -04:00
2016-10-20 14:32:22 -04:00
2016-04-27 22:48:23 -04:00
2016-10-26 17:33:22 -04:00
2016-09-21 00:23:01 -04:00
2016-09-21 00:23:01 -04:00
2016-09-21 00:23:01 -04:00
2016-09-01 14:09:01 -07:00
2016-06-10 23:07:49 -07:00
2016-09-21 00:23:00 -04:00
2016-11-03 15:33:30 -04:00
2016-10-20 14:32:22 -04:00
2016-10-26 17:33:22 -04:00
2015-09-17 17:18:37 -07:00