Files
i2som-imx-linux/include/net
Hannes Frederic Sowa ad25b5df02 inet: fix addr_len/msg->msg_namelen assignment in recv_error and rxpmtu functions
[ Upstream commit 85fbaa7503 ]

Commit bceaa90240 ("inet: prevent leakage
of uninitialized memory to user in recv syscalls") conditionally updated
addr_len if the msg_name is written to. The recv_error and rxpmtu
functions relied on the recvmsg functions to set up addr_len before.

As this does not happen any more we have to pass addr_len to those
functions as well and set it to the size of the corresponding sockaddr
length.

This broke traceroute and such.

Fixes: bceaa90240 ("inet: prevent leakage of uninitialized memory to user in recv syscalls")
Reported-by: Brad Spengler <spender@grsecurity.net>
Reported-by: Tom Labanowski
Cc: mpb <mpb.mail@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-08 07:29:42 -08:00
..
2012-02-04 16:06:28 -05:00
2012-03-06 15:16:25 -05:00
2012-03-20 21:29:41 -04:00
2011-07-26 16:49:47 -07:00
2012-02-15 16:37:44 -05:00
2011-07-26 16:49:47 -07:00
2013-02-28 06:59:06 -08:00
2012-04-17 22:31:59 -04:00
2011-09-16 19:20:20 -04:00
2011-07-26 16:49:47 -07:00
2011-12-11 18:25:16 -05:00
2013-05-01 09:41:16 -07:00
2013-05-19 10:54:47 -07:00