]> git.baikalelectronics.ru Git - kernel.git/commit
tomoyo: Check address length before reading address family
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fri, 12 Apr 2019 10:59:36 +0000 (19:59 +0900)
committerJames Morris <jamorris@linux.microsoft.com>
Fri, 10 May 2019 21:58:25 +0000 (14:58 -0700)
commit0a76ff62b82eb733205ec19a4a35cb6ef042ff51
tree8c51acf92c910b500cd4622df6e11b949de7118b
parenta7a418d9c79b2187c8e621056021ddabd2123fca
tomoyo: Check address length before reading address family

KMSAN will complain if valid address length passed to bind()/connect()/
sendmsg() is shorter than sizeof("struct sockaddr"->sa_family) bytes.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jamorris@linux.microsoft.com>
security/tomoyo/network.c