]> 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)
commitac1f13aae673e44d6bcb012a6f95ebb703fbc3bb
tree8c51acf92c910b500cd4622df6e11b949de7118b
parenta9424638832926758e7f8f79e4f29c60331a3c27
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