]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 9028/1: disable KASAN in call stack capturing routines
authorArd Biesheuvel <ardb@kernel.org>
Tue, 17 Nov 2020 09:23:28 +0000 (10:23 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 8 Dec 2020 10:14:57 +0000 (10:14 +0000)
commitfe656b748b304358d6c6b72b39c2dbf1c39fca9b
tree182618020b807c5994a377650fd0924edd148497
parent5282fed6c89bf2ba8717cb1ad458022b4aaf02da
ARM: 9028/1: disable KASAN in call stack capturing routines

KASAN uses the routines in stacktrace.c to capture the call stack each
time memory gets allocated or freed. Some of these routines are also
used to log CPU and memory context when exceptions are taken, and so
in some cases, memory accesses may be made that are not strictly in
line with the KASAN constraints, and may therefore trigger false KASAN
positives.

So follow the example set by other architectures, and simply disable
KASAN instrumentation for these routines.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/Makefile