net: netlink: Check address length before reading groups field
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fri, 12 Apr 2019 10:53:38 +0000 (19:53 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:25:03 +0000 (10:25 -0700)
commitd852be84770c0611f8b76bd7046c6a814c5b9f11
treeb3eed0119109bd2d11d1bc48bafd89ef75a1efd0
parent175f7c1f01d30b2088491bee4636fbf846fb76ce
net: netlink: Check address length before reading groups field

KMSAN will complain if valid address length passed to bind() is shorter
than sizeof(struct sockaddr_nl) bytes.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c