aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_vti.c
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2017-02-14 07:43:56 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2017-02-14 12:34:30 +0100
commit4c86d77743a54fb2d8a4d18a037a074c892bb3be (patch)
treefc92aecb864817fb9a543a7de3e0c6ccda0949ce /net/ipv6/ip6_vti.c
parentxfrm: policy: init locks early (diff)
downloadlinux-dev-4c86d77743a54fb2d8a4d18a037a074c892bb3be.tar.xz
linux-dev-4c86d77743a54fb2d8a4d18a037a074c892bb3be.zip
xfrm: Don't use sk_family for socket policy lookups
On IPv4-mapped IPv6 addresses sk_family is AF_INET6, but the flow informations are created based on AF_INET. So the routing set up 'struct flowi4' but we try to access 'struct flowi6' what leads to an out of bounds access. Fix this by using the family we get with the dst_entry, like we do it for the standard policy lookup. Reported-by: Dmitry Vyukov <dvyukov@google.com> Tested-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6/ip6_vti.c')
0 files changed, 0 insertions, 0 deletions