netrom: info leak in ->getname()
commit7a3b68434b1b5fb7b9a6184efb26822cd1a54cc8
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 22 Apr 2013 20:22:51 +0000 (22 20:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 05:47:58 +0000 (25 01:47 -0400)
tree6b2e5cbcfca48b1229396fd19773386f7eefd62e
parentfccc9f1fa878d9599aa583f0fec3bca95639667d
netrom: info leak in ->getname()

The sockaddr_ax25 struct has a 3 byte hole between ->sax25_call and
->sax25_ndigis.  I've added a memset to avoid leaking uninitialized
stack data to userspace.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/af_netrom.c