linux/net/rose
Mathias Krause 4a184233f2 rose: fix info leak via msg_name in rose_recvmsg()
The code in rose_recvmsg() does not initialize all of the members of
struct sockaddr_rose/full_sockaddr_rose when filling the sockaddr info.
Nor does it initialize the padding bytes of the structure inserted by
the compiler for alignment. This will lead to leaking uninitialized
kernel stack bytes in net/socket.c.

Fix the issue by initializing the memory used for sockaddr info with
memset(0).

Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-07 16:28:02 -04:00
..
af_rose.c rose: fix info leak via msg_name in rose_recvmsg() 2013-04-07 16:28:02 -04:00
Makefile
rose_dev.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
rose_in.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
rose_link.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
rose_loopback.c rose: Add length checks to CALL_REQUEST parsing 2011-03-27 17:59:04 -07:00
rose_out.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
rose_route.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
rose_subr.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
rose_timer.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sysctl_net_rose.c net: Convert all sysctl registrations to register_net_sysctl 2012-04-20 21:22:30 -04:00