1
0
Fork 0
alistair23-linux/arch/xtensa/kernel
Max Filippov c633544a61 xtensa: add support for KASAN
Cover kernel addresses above 0x90000000 by the shadow map. Enable
HAVE_ARCH_KASAN when MMU is enabled. Provide kasan_early_init that fills
shadow map with writable copies of kasan_zero_page. Call
kasan_early_init right after mmu initialization in the setup_arch.
Provide kasan_init that allocates proper shadow map pages from the
memblock and puts these pages into the shadow map for addresses from
VMALLOC area to the end of KSEG. Call kasan_init right after memblock
initialization. Don't use KASAN for the boot code, MMU and KASAN
initialization and page fault handler. Make kernel stack size 4 times
larger when KASAN is enabled to avoid stack overflows.
GCC 7.3, 8 or newer is required to build the xtensa kernel with KASAN.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2017-12-16 22:37:12 -08:00
..
.gitignore xtensa: tell git to ignore generated files 2013-06-05 10:14:19 -07:00
Makefile xtensa: build kernel with text-section-literals 2017-12-10 14:48:51 -08:00
align.S xtensa: clean up word alignment macros in assembly code 2017-12-10 14:48:53 -08:00
asm-offsets.c xtensa: clean up exception handling structure 2017-12-16 22:37:09 -08:00
coprocessor.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
entry.S xtensa: enable stack protector 2017-12-16 22:37:07 -08:00
head.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
hw_breakpoint.c xtensa: support hardware breakpoints/watchpoints 2016-03-11 08:53:32 +00:00
irq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mcount.S xtensa: add static function tracer support 2013-07-08 01:18:57 -07:00
module.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
mxhead.S xtensa: drop unused sections and remapped reset handlers 2015-11-03 17:19:39 +03:00
pci-dma.c This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
pci.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
perf_event.c cpu/hotplug: Cleanup state names 2016-12-25 10:47:44 +01:00
platform.c xtensa: cleanup ccount frequency tracking 2013-07-08 01:11:37 -07:00
process.c xtensa: enable stack protector 2017-12-16 22:37:07 -08:00
ptrace.c xtensa: use generic tracehooks 2017-05-01 07:00:10 -07:00
s32c1i_selftest.c xtensa: move S32C1I self-test to a separate file 2016-11-16 15:08:28 -08:00
setup.c xtensa: add support for KASAN 2017-12-16 22:37:12 -08:00
signal.c xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
smp.c sched/headers: Move task->mm handling methods to <linux/sched/mm.h> 2017-03-03 01:43:28 +01:00
stacktrace.c xtensa: clean up access to spilled registers locations 2017-05-01 10:34:43 -07:00
syscall.c mm: larger stack guard gap, between vmas 2017-06-19 21:50:20 +08:00
time.c clocksource/drivers: Rename clocksource_probe to timer_probe 2017-06-14 11:59:16 +02:00
traps.c xtensa: clean up exception handling structure 2017-12-16 22:37:09 -08:00
vectors.S xtensa: use call instead of callx in assembly code 2017-12-10 14:48:52 -08:00
vmlinux.lds.S xtensa: build kernel with text-section-literals 2017-12-10 14:48:51 -08:00
xtensa_ksyms.c xtensa: add support for KASAN 2017-12-16 22:37:12 -08:00