x86/mm/32: Add support for 64-bit __get_user() on 32-bit kernels
authorBenjamin LaHaise <bcrl@kvack.org>
Wed, 9 Mar 2016 20:05:56 +0000 (15:05 -0500)
committerIngo Molnar <mingo@kernel.org>
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 <bcrl@kvack.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/uaccess.h