path: root/arch/parisc/lib/memcpy.c
diff options
authorHelge Deller <>2010-02-01 19:56:33 +0000
committerKyle McMartin <>2010-03-06 22:54:09 +0000
commit888c31fc83ddc7fcd9947cb67c5718b4e3dd5e1b (patch)
tree15ef949561b6c8b319bb686eadec20c98148dfa3 /arch/parisc/lib/memcpy.c
parenta3bee03e718c9251456676b71a723a34c999e891 (diff)
parisc: add strict copy size checks (v2)
Add CONFIG_DEBUG_STRICT_USER_COPY_CHECKS, copied from the x86 implementation. Tested with 32 and 64bit kernel. Signed-off-by: Helge Deller <> Signed-off-by: Kyle McMartin <>
Diffstat (limited to 'arch/parisc/lib/memcpy.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c
index abf41f4632a9..1dbca5c31b3c 100644
--- a/arch/parisc/lib/memcpy.c
+++ b/arch/parisc/lib/memcpy.c
@@ -475,7 +475,8 @@ unsigned long copy_to_user(void __user *dst, const void *src, unsigned long len)
return pa_memcpy((void __force *)dst, src, len);
-unsigned long copy_from_user(void *dst, const void __user *src, unsigned long len)
+unsigned long __copy_from_user(void *dst, const void __user *src, unsigned long len)
mtsp(get_user_space(), 1);
mtsp(get_kernel_space(), 2);