]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: add RTA_TABLE and RTA_PREFSRC to rtm_ipv6_policy
authorEric Dumazet <edumazet@google.com>
Mon, 23 Apr 2018 01:29:23 +0000 (18:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Apr 2018 16:01:21 +0000 (12:01 -0400)
commitb317b3fc75366d97c8a581757200e579c2b0da9a
tree9fbc867dc5813a3544380e7602554a438cbbaaa6
parent85519149ab42579e7ccf0eb3335abb49e6d4063c
ipv6: add RTA_TABLE and RTA_PREFSRC to rtm_ipv6_policy

KMSAN reported use of uninit-value that I tracked to lack
of proper size check on RTA_TABLE attribute.

I also believe RTA_PREFSRC lacks a similar check.

Fixes: b373cffab35b ("[IPv6] route: FIB6 configuration using struct fib6_config")
Fixes: 8fbfb9b65e9f ("ipv6: RTA_PREFSRC support for ipv6 route source address selection")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c