Revision b02faed15d86f846b0f23f47b92e0782baa873ed authored by Mark Rutland on 03 October 2017, 17:25:46 UTC, committed by Catalin Marinas on 04 October 2017, 16:37:33 UTC
AddressSanitizer instrumentation can significantly bloat the stack, and
with GCC 7 this can result in stack overflows at boot time in some
configurations.

We can avoid this by doubling our stack size when KASAN is in use, as is
already done on x86 (and has been since KASAN was introduced).
Regardless of other patches to decrease KASAN's stack utilization,
kernels built with KASAN will always require more stack space than those
built without, and we should take this into account.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 37f6b42
History
File Mode Size
include
.gitignore -rw-r--r-- 74 bytes
Kconfig -rw-r--r-- 2.8 KB
Makefile -rw-r--r-- 4.0 KB
apparmorfs.c -rw-r--r-- 61.3 KB
audit.c -rw-r--r-- 4.0 KB
capability.c -rw-r--r-- 4.2 KB
context.c -rw-r--r-- 5.5 KB
crypto.c -rw-r--r-- 2.5 KB
domain.c -rw-r--r-- 33.9 KB
file.c -rw-r--r-- 19.5 KB
ipc.c -rw-r--r-- 6.2 KB
label.c -rw-r--r-- 50.0 KB
lib.c -rw-r--r-- 12.9 KB
lsm.c -rw-r--r-- 40.2 KB
match.c -rw-r--r-- 11.3 KB
mount.c -rw-r--r-- 17.6 KB
net.c -rw-r--r-- 4.0 KB
nulldfa.in -rw-r--r-- 6.8 KB
path.c -rw-r--r-- 6.2 KB
policy.c -rw-r--r-- 31.2 KB
policy_ns.c -rw-r--r-- 9.8 KB
policy_unpack.c -rw-r--r-- 25.9 KB
procattr.c -rw-r--r-- 3.7 KB
resource.c -rw-r--r-- 5.2 KB
secid.c -rw-r--r-- 1.2 KB

back to top