WSL2-Linux-Kernel/arch/arm/lib
Andrew Jeffery ceac10c83b ARM: 9290/1: uaccess: Fix KASAN false-positives
__copy_to_user_memcpy() and __clear_user_memset() had been calling
memcpy() and memset() respectively, leading to false-positive KASAN
reports when starting userspace:

    [   10.707901] Run /init as init process
    [   10.731892] process '/bin/busybox' started with executable stack
    [   10.745234] ==================================================================
    [   10.745796] BUG: KASAN: user-memory-access in __clear_user_memset+0x258/0x3ac
    [   10.747260] Write of size 2687 at addr 000de581 by task init/1

Use __memcpy() and __memset() instead to allow userspace access, which
is of course the intent of these functions.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
2023-03-06 15:25:08 +00:00
..
Makefile ARM: 9279/1: support function error injection 2022-12-07 14:08:38 +00:00
ashldi3.S
ashrdi3.S
backtrace-clang.S ARM: implement IRQ stacks 2021-12-03 15:11:31 +01:00
backtrace.S ARM: implement IRQ stacks 2021-12-03 15:11:31 +01:00
bitops.h
bswapsdi2.S
call_with_stack.S ARM: 9233/1: stacktrace: Skip frame pointer boundary check for call_with_stack() 2022-10-04 11:09:47 +01:00
changebit.S
clear_user.S
clearbit.S
copy_from_user.S ARM: memcpy: use frame pointer as unwind anchor 2021-12-03 15:11:32 +01:00
copy_page.S
copy_template.S ARM: memcpy: use frame pointer as unwind anchor 2021-12-03 15:11:32 +01:00
copy_to_user.S ARM: memcpy: use frame pointer as unwind anchor 2021-12-03 15:11:32 +01:00
csumipv6.S
csumpartial.S
csumpartialcopy.S arm: propagate the calling convention changes down to csum_partial_copy_from_user() 2020-08-20 15:45:16 -04:00
csumpartialcopygeneric.S arm: propagate the calling convention changes down to csum_partial_copy_from_user() 2020-08-20 15:45:16 -04:00
csumpartialcopyuser.S arm: propagate the calling convention changes down to csum_partial_copy_from_user() 2020-08-20 15:45:16 -04:00
delay-loop.S ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
delay.c
div64.S
error-inject.c ARM: 9279/1: support function error injection 2022-12-07 14:08:38 +00:00
findbit.S ARM: findbit: add unwinder information 2022-11-14 12:00:58 +00:00
getuser.S
io-readsb.S
io-readsl.S
io-readsw-armv3.S
io-readsw-armv4.S
io-writesb.S
io-writesl.S
io-writesw-armv3.S
io-writesw-armv4.S
lib1funcs.S
lshrdi3.S
memchr.S
memcpy.S ARM: memcpy: use frame pointer as unwind anchor 2021-12-03 15:11:32 +01:00
memmove.S ARM: memmove: use frame pointer as unwind anchor 2021-12-03 15:11:32 +01:00
memset.S ARM: memset: clean up unwind annotations 2021-12-03 15:11:32 +01:00
muldi3.S
putuser.S
setbit.S
strchr.S
strrchr.S
testchangebit.S
testclearbit.S
testsetbit.S
uaccess_with_memcpy.c ARM: 9290/1: uaccess: Fix KASAN false-positives 2023-03-06 15:25:08 +00:00
ucmpdi2.S
xor-neon.c crypto: arm/xor - make vectorized C code Clang-friendly 2022-02-11 20:39:39 +11:00