Douglas Anderson ff57070df0 kgdb: Prevent infinite recursive entries to the debugger
[ Upstream commit 3ca676e4ca60d1834bb77535dafe24169cadacef ]

If we detect that we recursively entered the debugger we should hack
our I/O ops to NULL so that the panic() in the next line won't
actually cause another recursion into the debugger.  The first line of
kgdb_panic() will check this and return.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20200507130644.v4.6.I89de39f68736c9de610e6f241e68d8dbc44bc266@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-20 10:25:08 +02:00
..
2019-12-01 09:14:03 +01:00
2018-08-03 07:50:38 +02:00
2020-04-02 16:34:21 +02:00
2018-08-03 07:50:22 +02:00
2020-04-02 16:34:20 +02:00
2017-08-21 12:47:31 -07:00
2020-04-24 08:00:38 +02:00
2020-01-09 10:17:53 +01:00
2018-05-09 09:51:50 +02:00
2020-05-20 08:16:58 +02:00