diff options
author | Patryk Duda <pdk@semihalf.com> | 2021-08-23 14:21:08 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-01 21:30:06 +0000 |
commit | 046b25029f55365dda58e648a9cc47666213397b (patch) | |
tree | 3497f92b613c80ff3cc07f30020e12c7a7b1c222 /common | |
parent | ef0566e1e9234461c00987ff6e3236a5ac6a5a42 (diff) | |
download | chrome-ec-046b25029f55365dda58e648a9cc47666213397b.tar.gz |
cortex-m/panic: Introduce CONFIG_PANIC_STRIP_GPR option
If set, this option will prevent saving General Purpose Registers
during panic. When software panic occurs, R4 and R5 will be saved,
because they contain additional information about panic.
This should be enabled on boards which are processing sensitive data
and panic could cause the leak.
BUG=b:193408648
BRANCH=none
TEST=Trigger panic using 'crash' command. After reboot use 'panicinfo'
to check what was saved. When CPU exception occurred registers
R0-R12 should be set to 0. In case of software panic, R4 and R5 can
contain panic reason and additional information.
Signed-off-by: Patryk Duda <pdk@semihalf.com>
Change-Id: I06f9c4bb07f936f0822f70a05e19c8d99c68abfb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3114645
Commit-Queue: Marcin Wojtas <mwojtas@google.com>
Reviewed-by: Craig Hesling <hesling@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4469248
Tested-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions