Skip to content

Commit fff5a5e

Browse files
committed
Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fix from Russell King: "Just one fix for now to eliminate a KASAN false positive" * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 9290/1: uaccess: Fix KASAN false-positives
2 parents c13e02d + ceac10c commit fff5a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/lib/uaccess_with_memcpy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n)
116116
tocopy = n;
117117

118118
ua_flags = uaccess_save_and_enable();
119-
memcpy((void *)to, from, tocopy);
119+
__memcpy((void *)to, from, tocopy);
120120
uaccess_restore(ua_flags);
121121
to += tocopy;
122122
from += tocopy;
@@ -178,7 +178,7 @@ __clear_user_memset(void __user *addr, unsigned long n)
178178
tocopy = n;
179179

180180
ua_flags = uaccess_save_and_enable();
181-
memset((void *)addr, 0, tocopy);
181+
__memset((void *)addr, 0, tocopy);
182182
uaccess_restore(ua_flags);
183183
addr += tocopy;
184184
n -= tocopy;

0 commit comments

Comments
 (0)