[PATCH 4.10 59/62] macsec: avoid heap overflow in skb_to_sgvec

2017-05-01 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit 4d6fa57b4dab0d77f4d8e9d9c73d1e63f6fe8fee upstream. While this may appear as a humdrum one line change, it's actually quite important. An sk_buff

[PATCH 4.10 59/62] macsec: avoid heap overflow in skb_to_sgvec

2017-05-01 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit 4d6fa57b4dab0d77f4d8e9d9c73d1e63f6fe8fee upstream. While this may appear as a humdrum one line change, it's actually quite important. An sk_buff stores data in three