113ab704c7
Reproduce: configure: ./tools/configure.sh qemu-armv7a:nsh -j8 open kasan: CONFIG_MM_KASAN=y run: qemu-system-arm -cpu cortex-a7 -nographic -machine virt,virtualization=off,gic-version=2 -net none -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev=con,mode=readline -kernel ./nuttx error: run hanged Rootcause: In Qemu armv7a, the ram-end reserved for MMU PGTABLE: And the up_allocate_heap() directly use the ram-end for heap in arch/arm/src/common/arm_allocateheap.c *heap_size = CONFIG_RAM_END - g_idle_topstack; Then they are conflict. Usually, we won't use the heap end, so can't find the error. BUT, the KASAN will use the heap end for shadow, so found the error. Resolve: up_allocate_heap() consider of MMU, re-define the RAM_END at chip.h Signed-off-by: ligd <liguiding1@xiaomi.com> |
||
---|---|---|
.. | ||
arm | ||
arm64 | ||
avr | ||
ceva | ||
dummy | ||
hc | ||
mips | ||
misoc | ||
or1k | ||
renesas | ||
risc-v | ||
sim | ||
sparc | ||
tricore | ||
x86 | ||
x86_64 | ||
xtensa | ||
z16 | ||
z80 | ||
CMakeLists.txt | ||
Kconfig |