]> git.baikalelectronics.ru Git - kernel.git/commit
mISDN: Check address length before reading address family
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fri, 12 Apr 2019 10:52:36 +0000 (19:52 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:25:03 +0000 (10:25 -0700)
commitd8653c3206f344940e2181b010d76bae935dbe90
tree6c23048270495971ca7ab13423d5ca7df6d00786
parentf434ba4d988a39406f10b651d00f53c9cbbec1ba
mISDN: Check address length before reading address family

KMSAN will complain if valid address length passed to bind() is shorter
than sizeof("struct sockaddr_mISDN"->family) bytes.

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