tcp: sysctl interface leaks 16 bytes of kernel memory
authorAlan Cox <alan@linux.intel.com>
Thu, 11 Oct 2012 06:24:14 +0000 (06:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2012 19:12:33 +0000 (15:12 -0400)
commit0e24c4fc52b16f0a1102a933f636d2f350c41098
tree8d70e83af6991d7d997a9638602618e59e12f718
parent0abc1ceec52fcb9f962a2cd52e89baccccbc1d2e
tcp: sysctl interface leaks 16 bytes of kernel memory

If the rc_dereference of tcp_fastopen_ctx ever fails then we copy 16 bytes
of kernel stack into the proc result.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/sysctl_net_ipv4.c