commit | d93bb04ac494797c584c36c3bbcb2208a891055b | [log] [tgz] |
---|---|---|
author | Mike McTernan <mikemcternan@google.com> | Mon May 13 22:33:39 2024 +0100 |
committer | Mike McTernan <mikemcternan@google.com> | Mon May 13 21:38:05 2024 +0000 |
tree | cfe806a00bba8a841882ef926c90ed77b2157156 | |
parent | 055f6de283033104bbddfc2c9eb8cbca09002579 [diff] |
trusty: arm32: fix potential double fault when printing diagnostics When dumping_mode_regs() on a fault, avoid printing the stack beyond the current page. This prevents exceeding the stack base and hitting a guard page in the case the stack use is < 128 bytes. Bug: 336957655 Test: crash test, observe double fault fixed Change-Id: If49b5fe5e1651557d19bf18c4026224cfb038101
The LK embedded kernel. An SMP-aware kernel designed for small systems.
See https://github.com/littlekernel/lk for the latest version.
See https://github.com/littlekernel/lk/wiki for documentation.
This will get you a interactive prompt into LK which is running in qemu arm machine ‘virt’ emulation. type ‘help’ for commands.
note 1: for ubuntu: sudo apt-get install gcc-arm-none-eabi or fetch a prebuilt toolchain from http://newos.org/toolchains/arm-eabi-5.3.0-Linux-x86_64.tar.xz