arm64: make irq_stack_ptr more robust
authorYang Shi <yang.shi@linaro.org>
Thu, 11 Feb 2016 21:53:10 +0000 (13:53 -0800)
committerWill Deacon <will.deacon@arm.com>
Fri, 12 Feb 2016 15:53:51 +0000 (15:53 +0000)
commita80a0eb70c358f8c7dda4bb62b2278dc6285217b
treea0fda0517271586316fbd476aed280734a245151
parente04a28d45ff343b47a4ffc4dee3a3e279e76ddfa
arm64: make irq_stack_ptr more robust

Switching between stacks is only valid if we are tracing ourselves while on the
irq_stack, so it is only valid when in current and non-preemptible context,
otherwise is is just zeroed off.

Fixes: 132cd887b5c5 ("arm64: Modify stack trace and dump for use with irq_stack")
Acked-by: James Morse <james.morse@arm.com>
Tested-by: James Morse <james.morse@arm.com>
Signed-off-by: Yang Shi <yang.shi@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/stacktrace.c
arch/arm64/kernel/traps.c
This page took 0.024233 seconds and 5 git commands to generate.