diff options
author | 2021-02-03 00:02:06 +1100 | |
---|---|---|
committer | 2021-02-09 01:10:16 +1100 | |
commit | 0ecf6a9e47d825b7dddfebca738386b809e59a94 (patch) | |
tree | e3074c3b0caa3e00e4f053caf4879296702319ca /tools/perf/scripts/python/export-to-sqlite.py | |
parent | powerpc64/idle: Fix SP offsets when saving GPRs (diff) | |
download | linux-rng-0ecf6a9e47d825b7dddfebca738386b809e59a94.tar.xz linux-rng-0ecf6a9e47d825b7dddfebca738386b809e59a94.zip |
powerpc/64: Make stack tracing work during very early boot
If we try to stack trace very early during boot, either due to a
WARN/BUG or manual dump_stack(), we will oops in
valid_emergency_stack() when we try to dereference the paca_ptrs
array.
The fix is simple, we just return false if paca_ptrs isn't allocated
yet. The stack pointer definitely isn't part of any emergency stack
because we haven't allocated any yet.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210202130207.1303975-1-mpe@ellerman.id.au
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions