]> git.baikalelectronics.ru Git - kernel.git/commit
atm: update msg_namelen in vcc_recvmsg()
authorMathias Krause <minipli@googlemail.com>
Sun, 7 Apr 2013 01:51:47 +0000 (01:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2013 20:28:00 +0000 (16:28 -0400)
commit4d6779549629571db8f10663ec922fe6f9214f3a
treebc6ccd35725dddd0b299372947f09532f9f44a74
parentb1eacecc72053607f953a4add1cedc28ce233832
atm: update msg_namelen in vcc_recvmsg()

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>
net/atm/common.c