diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-04-07 01:51:47 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-05-13 15:02:38 +0100 |
commit | 2a8c07b253bac436358adb9eb96a37dd223ef120 (patch) | |
tree | 0dc4131385038e6cae8d6ecb79cf336d9d2c2ab6 /fs/romfs | |
parent | 60986f51c3db46081a9cb9fd469ad65cd1ccb833 (diff) |
atm: update msg_namelen in vcc_recvmsg()
[ Upstream commit 9b3e617f3df53822345a8573b6d358f6b9e5ed87 ]
The current code does not fill the msg_name member in case it is set.
It also does not set the msg_namelen member to 0 and therefore makes
net/socket.c leak the local, uninitialized sockaddr_storage variable
to userland -- 128 bytes of kernel stack memory.
Fix that by simply setting msg_namelen to 0 as obviously nobody cared
about vcc_recvmsg() not filling the msg_name in case it was set.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/romfs')
0 files changed, 0 insertions, 0 deletions