]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc343ea1c09ace1be36a0243b8b6e4ba7e47bd74
treeb3eed0119109bd2d11d1bc48bafd89ef75a1efd0
parent7274ece12294e91a6c7b2dd3d829c9caa8c8190c
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