x86, smap: Handle csum_partial_copy_*_user()
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 30 Aug 2013 22:43:03 +0000 (15:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:21:43 +0000 (17:21 -0700)
commit727e55b113cd0b4500303dd7c0dbaccd01dad8d3
tree76ada5eaac7eb51846444cfbe9d3f6ba19fd90f3
parent1a07de8cbda2a4f612523591232e8bee97d33287
x86, smap: Handle csum_partial_copy_*_user()

commit 7263dda41b5a28ae6566fd126d9b06ada73dd721 upstream.

Add SMAP annotations to csum_partial_copy_to/from_user().  These
functions legitimately access user space and thus need to set the AC
flag.

TODO: add explicit checks that the side with the kernel space pointer
really points into kernel space.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-2aps0u00eer658fd5xyanan7@git.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/checksum_32.h
arch/x86/lib/csum-wrappers_64.c