linux-stable/kernel/debug/kdb
Douglas Anderson 3818c29a65 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:47:19 +01:00
..
.gitignore
kdb_bp.c kdb: bl: don't use tab character in output 2018-01-25 08:41:22 -06:00
kdb_bt.c kdb: Don't back trace on a cpu that didn't round up 2019-02-12 19:47:19 +01:00
kdb_cmds kdb: cleanup unused variables missed in the original kdb merge 2011-08-01 13:23:58 -05:00
kdb_debugger.c kdb: Don't back trace on a cpu that didn't round up 2019-02-12 19:47:19 +01:00
kdb_io.c kdb: Use strscpy with destination buffer size 2018-12-01 09:37:33 +01:00
kdb_keyboard.c KDB: Fix usability issues relating to the 'enter' key. 2012-03-22 15:07:15 -05:00
kdb_main.c kdb: print real address of pointers instead of hashed addresses 2018-11-21 09:19:23 +01:00
kdb_private.h kdb: Use strscpy with destination buffer size 2018-12-01 09:37:33 +01:00
kdb_support.c kdb: Use strscpy with destination buffer size 2018-12-01 09:37:33 +01:00
Makefile kgdboc,keyboard: Keyboard driver for kdb with kgdb 2010-05-20 21:04:24 -05:00