]> 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)
commitd2fd8d1c642ccf0c9772ff00e0da84bc3a05c8c1
tree9fbc867dc5813a3544380e7602554a438cbbaaa6
parente4650bd967518c10b62a1ecb0be85de7ea77a332
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