]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.7/avr32-fix-undefined-reference-to-___copy_from_user.patch
Linux 4.4.22
[thirdparty/kernel/stable-queue.git] / queue-4.7 / avr32-fix-undefined-reference-to-___copy_from_user.patch
1 From 65c0044ca8d7c7bbccae37f0ff2972f0210e9f41 Mon Sep 17 00:00:00 2001
2 From: Guenter Roeck <linux@roeck-us.net>
3 Date: Sat, 17 Sep 2016 07:52:49 -0700
4 Subject: avr32: fix 'undefined reference to `___copy_from_user'
5
6 From: Guenter Roeck <linux@roeck-us.net>
7
8 commit 65c0044ca8d7c7bbccae37f0ff2972f0210e9f41 upstream.
9
10 avr32 builds fail with:
11
12 arch/avr32/kernel/built-in.o: In function `arch_ptrace':
13 (.text+0x650): undefined reference to `___copy_from_user'
14 arch/avr32/kernel/built-in.o:(___ksymtab+___copy_from_user+0x0): undefined
15 reference to `___copy_from_user'
16 kernel/built-in.o: In function `proc_doulongvec_ms_jiffies_minmax':
17 (.text+0x5dd8): undefined reference to `___copy_from_user'
18 kernel/built-in.o: In function `proc_dointvec_minmax_sysadmin':
19 sysctl.c:(.text+0x6174): undefined reference to `___copy_from_user'
20 kernel/built-in.o: In function `ptrace_has_cap':
21 ptrace.c:(.text+0x69c0): undefined reference to `___copy_from_user'
22 kernel/built-in.o:ptrace.c:(.text+0x6b90): more undefined references to
23 `___copy_from_user' follow
24
25 Fixes: 8630c32275ba ("avr32: fix copy_from_user()")
26 Cc: Al Viro <viro@zeniv.linux.org.uk>
27 Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com>
28 Acked-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
29 Signed-off-by: Guenter Roeck <linux@roeck-us.net>
30 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31
32 ---
33 arch/avr32/lib/copy_user.S | 4 ++--
34 1 file changed, 2 insertions(+), 2 deletions(-)
35
36 --- a/arch/avr32/lib/copy_user.S
37 +++ b/arch/avr32/lib/copy_user.S
38 @@ -23,8 +23,8 @@
39 */
40 .text
41 .align 1
42 - .global copy_from_user
43 - .type copy_from_user, @function
44 + .global ___copy_from_user
45 + .type ___copy_from_user, @function
46 ___copy_from_user:
47 branch_if_kernel r8, __copy_user
48 ret_if_privileged r8, r11, r10, r10