diff options
author | Helge Deller <deller@gmx.de> | 2010-02-01 22:56:33 +0300 |
---|---|---|
committer | Kyle McMartin <kyle@redhat.com> | 2010-03-07 01:54:09 +0300 |
commit | 888c31fc83ddc7fcd9947cb67c5718b4e3dd5e1b (patch) | |
tree | 15ef949561b6c8b319bb686eadec20c98148dfa3 /arch/parisc/lib | |
parent | a3bee03e718c9251456676b71a723a34c999e891 (diff) | |
download | linux-888c31fc83ddc7fcd9947cb67c5718b4e3dd5e1b.tar.xz |
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 <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/lib')
-rw-r--r-- | arch/parisc/lib/memcpy.c | 3 |
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) +EXPORT_SYMBOL(__copy_from_user); +unsigned long __copy_from_user(void *dst, const void __user *src, unsigned long len) { mtsp(get_user_space(), 1); mtsp(get_kernel_space(), 2); |