diff options
-rw-r--r-- | arch/x86/include/asm/uaccess_64.h | 7 | ||||
-rw-r--r-- | arch/x86/kernel/x8664_ksyms_64.c | 1 | ||||
-rw-r--r-- | arch/x86/lib/copy_user_64.S | 6 |
3 files changed, 5 insertions, 9 deletions
diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uaccess_64.h index ce6fec7ce38d..7adebacaa325 100644 --- a/arch/x86/include/asm/uaccess_64.h +++ b/arch/x86/include/asm/uaccess_64.h | |||
@@ -193,8 +193,11 @@ __must_check long strlen_user(const char __user *str); | |||
193 | __must_check unsigned long clear_user(void __user *mem, unsigned long len); | 193 | __must_check unsigned long clear_user(void __user *mem, unsigned long len); |
194 | __must_check unsigned long __clear_user(void __user *mem, unsigned long len); | 194 | __must_check unsigned long __clear_user(void __user *mem, unsigned long len); |
195 | 195 | ||
196 | __must_check long __copy_from_user_inatomic(void *dst, const void __user *src, | 196 | static __must_check __always_inline int |
197 | unsigned size); | 197 | __copy_from_user_inatomic(void *dst, const void __user *src, unsigned size) |
198 | { | ||
199 | return copy_user_generic(dst, (__force const void *)src, size); | ||
200 | } | ||
198 | 201 | ||
199 | static __must_check __always_inline int | 202 | static __must_check __always_inline int |
200 | __copy_to_user_inatomic(void __user *dst, const void *src, unsigned size) | 203 | __copy_to_user_inatomic(void __user *dst, const void *src, unsigned size) |
diff --git a/arch/x86/kernel/x8664_ksyms_64.c b/arch/x86/kernel/x8664_ksyms_64.c index a0cdd8cc1d67..cd54276b6be8 100644 --- a/arch/x86/kernel/x8664_ksyms_64.c +++ b/arch/x86/kernel/x8664_ksyms_64.c | |||
@@ -32,7 +32,6 @@ EXPORT_SYMBOL(copy_user_generic); | |||
32 | EXPORT_SYMBOL(__copy_user_nocache); | 32 | EXPORT_SYMBOL(__copy_user_nocache); |
33 | EXPORT_SYMBOL(_copy_from_user); | 33 | EXPORT_SYMBOL(_copy_from_user); |
34 | EXPORT_SYMBOL(copy_to_user); | 34 | EXPORT_SYMBOL(copy_to_user); |
35 | EXPORT_SYMBOL(__copy_from_user_inatomic); | ||
36 | 35 | ||
37 | EXPORT_SYMBOL(copy_page); | 36 | EXPORT_SYMBOL(copy_page); |
38 | EXPORT_SYMBOL(clear_page); | 37 | EXPORT_SYMBOL(clear_page); |
diff --git a/arch/x86/lib/copy_user_64.S b/arch/x86/lib/copy_user_64.S index 4be3c415b3e9..39369985f1cb 100644 --- a/arch/x86/lib/copy_user_64.S +++ b/arch/x86/lib/copy_user_64.S | |||
@@ -96,12 +96,6 @@ ENTRY(copy_user_generic) | |||
96 | CFI_ENDPROC | 96 | CFI_ENDPROC |
97 | ENDPROC(copy_user_generic) | 97 | ENDPROC(copy_user_generic) |
98 | 98 | ||
99 | ENTRY(__copy_from_user_inatomic) | ||
100 | CFI_STARTPROC | ||
101 | ALTERNATIVE_JUMP X86_FEATURE_REP_GOOD,copy_user_generic_unrolled,copy_user_generic_string | ||
102 | CFI_ENDPROC | ||
103 | ENDPROC(__copy_from_user_inatomic) | ||
104 | |||
105 | .section .fixup,"ax" | 99 | .section .fixup,"ax" |
106 | /* must zero dest */ | 100 | /* must zero dest */ |
107 | ENTRY(bad_from_user) | 101 | ENTRY(bad_from_user) |