linux-stable/kernel/debug
Douglas Anderson a67a554d53 kdb: Don't back trace on a cpu that didn't round up
[ Upstream commit 162bc7f5af ]

If you have a CPU that fails to round up and then run 'btc' you'll end
up crashing in kdb becaue we dereferenced NULL.  Let's add a check.
It's wise to also set the task to NULL when leaving the debugger so
that if we fail to round up on a later entry into the debugger we
won't backtrace a stale task.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:46:09 +01:00
..
kdb kdb: Don't back trace on a cpu that didn't round up 2019-02-12 19:46:09 +01:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00
debug_core.c kdb: Don't back trace on a cpu that didn't round up 2019-02-12 19:46:09 +01:00
debug_core.h kgdb/kdb: Fix no KDB config problem 2014-01-25 08:55:09 +01:00
gdbstub.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00