H. Peter Anvin
7263dda41b
x86, smap: Handle csum_partial_copy_*_user()
...
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
Cc: <stable@vger.kernel.org > # v3.7+
2013-09-01 14:09:48 -07:00
Samuel Thibault
392d814daf
x86: fix csum_ipv6_magic asm memory clobber
...
Just like ip_fast_csum, the assembly snippet in csum_ipv6_magic needs a
memory clobber, as it is only passed the address of the buffer, not a
memory reference to the buffer itself.
This caused failures in Hurd's pfinetv4 when we tried to compile it with
gcc-4.3 (bogus checksums).
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org >
Cc: Ingo Molnar <mingo@elte.hu >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Acked-by: "David S. Miller" <davem@davemloft.net >
Cc: Andi Kleen <andi@firstfloor.org >
Cc: <stable@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-10-01 16:11:12 -07:00
H. Peter Anvin
1965aae3c9
x86: Fix ASM_X86__ header guards
...
Change header guards named "ASM_X86__*" to "_ASM_X86_*" since:
a. the double underscore is ugly and pointless.
b. no leading underscore violates namespace constraints.
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-10-22 22:55:23 -07:00
Al Viro
bb8985586b
x86, um: ... and asm-x86 move
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2008-10-22 22:55:20 -07:00