[PATCH 4.9 077/145] xfrm: Fix stack-out-of-bounds with misconfigured transport mode policies.

2018-02-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Steffen Klassert [ Upstream commit 732706afe1cc46ef48493b3d2b69c98f36314ae4 ] On policies with a transport mode template, we pass the addresses from the flowi to

[PATCH 4.9 077/145] xfrm: Fix stack-out-of-bounds with misconfigured transport mode policies.

2018-02-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Steffen Klassert [ Upstream commit 732706afe1cc46ef48493b3d2b69c98f36314ae4 ] On policies with a transport mode template, we pass the addresses from the flowi to xfrm_state_find(), assuming