Bluetooth: Check address length before reading address field
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fri, 12 Apr 2019 10:54:33 +0000 (19:54 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:25:03 +0000 (10:25 -0700)
commitbd7d46ddca06f1fadd68ceb99bc6e6f808ab50f2
tree3ecb7b934cac41a04e79df65b7708deb254473ff
parenta9107a14a9b9112775459ad291fc5de0f2513ce0
Bluetooth: Check address length before reading address field

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

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