net/compat: Fix minor information leak in siocdevprivate_ioctl()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 18 Nov 2013 17:04:58 +0000 (17:04 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Mon, 18 Nov 2013 23:50:12 +0000 (23:50 +0000)
commit417c3522b3202dacce4873cfb0190459fbce95c5
treed5b85dd1d60098c6231bfef3af00a4a176fb2a70
parente1bd1dc207dae92cdb5b424226f89d1b4e4bb182
net/compat: Fix minor information leak in siocdevprivate_ioctl()

We don't need to check that ifr_data itself is a valid user pointer,
but we should check &ifr_data is.  Thankfully the copy of ifr_name is
checked, so this can only leak a few bytes from immediately above the
user address limit.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
net/socket.c