x86/mm/32: Add support for 64-bit __get_user() on 32-bit kernels
authorBenjamin LaHaise <[email protected]>
Wed, 9 Mar 2016 20:05:56 +0000 (15:05 -0500)
committerIngo Molnar <[email protected]>
Wed, 13 Apr 2016 11:01:03 +0000 (13:01 +0200)
commitb2f680380ddf2f003882e59e00acd6c1952f91fc
tree4ea0aaea572cb99b0f619957fe7a463168fcebfe
parent1886297ce0c8d563a08c8a8c4c0b97743e06cd37
x86/mm/32: Add support for 64-bit __get_user() on 32-bit kernels

The existing __get_user() implementation does not support fetching
64-bit values on 32-bit x86.  Implement this in a way that does not
generate any incorrect warnings as cautioned by Russell King.

Test code available at:

  http://www.kvack.org/~bcrl/x86_32-get_user.tar .

Signed-off-by: Benjamin LaHaise <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/uaccess.h