Skip to content
Commit 78802879 authored by Alexander Potapenko's avatar Alexander Potapenko Committed by David S. Miller
Browse files

netlink: make sure nladdr has correct size in netlink_connect()



KMSAN reports use of uninitialized memory in the case when |alen| is
smaller than sizeof(struct sockaddr_nl), and therefore |nladdr| isn't
fully copied from the userspace.

Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Fixes: 1da177e4

 ("Linux-2.6.12-rc2")
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e69647a1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment