linux/tools/testing/selftests/powerpc/copyloops
Christophe Leroy 26deb04342 powerpc: prepare string/mem functions for KASAN
CONFIG_KASAN implements wrappers for memcpy() memmove() and memset()
Those wrappers are doing the verification then call respectively
__memcpy() __memmove() and __memset(). The arches are therefore
expected to rename their optimised functions that way.

For files on which KASAN is inhibited, #defines are used to allow
them to directly call optimised versions of the functions without
going through the KASAN wrappers.

See commit 393f203f5f ("x86_64: kasan: add interceptors for
memset/memmove/memcpy functions") for details.

Other string / mem functions do not (yet) have kasan wrappers,
we therefore have to fallback to the generic versions when
KASAN is active, otherwise KASAN checks will be skipped.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Fixups to keep selftests working]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-05-03 01:20:25 +10:00
..
asm powerpc: prepare string/mem functions for KASAN 2019-05-03 01:20:25 +10:00
.gitignore selftests/powerpc/64: Test exception cases in copy_tofrom_user 2018-08-08 00:32:35 +10:00
copy_tofrom_user_reference.S selftests/powerpc/64: Test exception cases in copy_tofrom_user 2018-08-08 00:32:35 +10:00
copyuser_64.S
copyuser_power7.S
exc_validate.c selftests/powerpc/64: Test exception cases in copy_tofrom_user 2018-08-08 00:32:35 +10:00
Makefile selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
memcpy_64.S
memcpy_power7.S
stubs.S selftests/powerpc/64: Test exception cases in copy_tofrom_user 2018-08-08 00:32:35 +10:00
validate.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00