]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3b352a1eef4e3aed29baac795dc80894033cc37
tree4ea0aaea572cb99b0f619957fe7a463168fcebfe
parent8c7aeef6832e9e5fd8e26c761727f5e44b926631
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