diff options
author | Alexander Potapenko <glider@google.com> | 2018-03-23 13:49:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-13 19:50:24 +0200 |
commit | bbced83a1b813db1d948e2773fbb8e62f3ae26ab (patch) | |
tree | f1f1d907bcb473abd6980d64ad15c5f3b6ff0669 /net/sched | |
parent | bd01e762a37bbf2358d1fe6b10f500c6186afb93 (diff) | |
download | linux-stable-bbced83a1b813db1d948e2773fbb8e62f3ae26ab.tar.gz linux-stable-bbced83a1b813db1d948e2773fbb8e62f3ae26ab.tar.bz2 linux-stable-bbced83a1b813db1d948e2773fbb8e62f3ae26ab.zip |
netlink: make sure nladdr has correct size in netlink_connect()
[ Upstream commit 7880287981b60a6808f39f297bb66936e8bdf57a ]
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: Alexander Potapenko <glider@google.com>
Fixes: 1da177e4c3f41524 ("Linux-2.6.12-rc2")
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions