]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitaa8f8778493c85fff480cdf8b349b1e1dcb5f243
tree9fbc867dc5813a3544380e7602554a438cbbaaa6
parentddea788c63094f7c483783265563dd5b50052e28
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: 86872cb57925 ("[IPv6] route: FIB6 configuration using struct fib6_config")
Fixes: c3968a857a6b ("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