aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2017-02-14 07:43:56 +0100
committerMister Oyster <oysterized@gmail.com>2017-08-20 13:24:44 +0200
commitc112fe63f337712984a4525f43b43081d3138ff3 (patch)
tree814e7a8f3bbb8a5598389125f0ae17cdb8253227 /include
parentc8d5029cb6cfffe5030ce044ce0d639431a6bd93 (diff)
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> Signed-off-by: Joe Maples <joe@frap129.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions