Files
linux/arch/ia64/include/asm
H. Peter Anvin c41d68a513 compat: Make compat_alloc_user_space() incorporate the access_ok()
compat_alloc_user_space() expects the caller to independently call
access_ok() to verify the returned area.  A missing call could
introduce problems on some architectures.

This patch incorporates the access_ok() check into
compat_alloc_user_space() and also adds a sanity check on the length.
The existing compat_alloc_user_space() implementations are renamed
arch_compat_alloc_user_space() and are used as part of the
implementation of the new global function.

This patch assumes NULL will cause __get_user()/__put_user() to either
fail or access userspace on all architectures.  This should be
followed by checking the return value of compat_access_user_space()
for NULL in the callers, at which time the access_ok() in the callers
can also be removed.

Reported-by: Ben Hawkes <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Acked-by: Benjamin Herrenschmidt <[email protected]>
Acked-by: Chris Metcalf <[email protected]>
Acked-by: David S. Miller <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Acked-by: Tony Luck <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Kyle McMartin <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: <[email protected]>
2010-09-14 16:08:45 -07:00
..
2010-03-14 20:58:38 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-31 14:25:08 -07:00
2009-12-16 02:45:10 +00:00
…
2010-08-10 13:47:39 -07:00
…
…
2010-08-14 22:26:51 +02:00
…
…
2010-06-09 11:12:36 +02:00
…
2009-01-06 14:06:52 +01:00
2009-01-16 10:09:10 +01:00
…
2009-09-22 07:17:42 -07:00
…
2010-05-18 14:45:52 -07:00
…
…
2009-06-17 09:33:49 -07:00
…
…
…
…
…
2010-02-08 10:42:17 -08:00
…
2009-06-17 09:33:49 -07:00
…
…
…
…
…
…
…
2008-09-04 09:46:13 +01:00
…
2009-02-01 11:01:25 +05:30
2010-02-08 10:42:17 -08:00
2010-02-08 10:42:17 -08:00
…
2010-01-07 16:10:57 -08:00
…
…
…
…
…
…