net: amend the fix for SO_BSDCOMPAT gsopt infoleak
authorEugene Teo <eugeneteo@kernel.sg>
Mon, 23 Feb 2009 23:38:41 +0000 (15:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Feb 2009 23:38:41 +0000 (15:38 -0800)
commit50fee1dec5d71b8a14c1b82f2f42e16adc227f8b
tree8eab115c8416a266e054c403163dc6aac0400943
parentebe47d47b7b7fed72dabcce4717da727b4e2367d
net: amend the fix for SO_BSDCOMPAT gsopt infoleak

The fix for CVE-2009-0676 (upstream commit df0bca04) is incomplete. Note
that the same problem of leaking kernel memory will reappear if someone
on some architecture uses struct timeval with some internal padding (for
example tv_sec 64-bit and tv_usec 32-bit) --- then, you are going to
leak the padded bytes to userspace.

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c