summaryrefslogtreecommitdiff
path: root/include/linux/kgdb.h
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2020-05-07 23:08:44 +0300
committerDaniel Thompson <daniel.thompson@linaro.org>2020-05-18 19:49:27 +0300
commit3ca676e4ca60d1834bb77535dafe24169cadacef (patch)
tree635e65fbf37431f26df8374d46db8d069b664e78 /include/linux/kgdb.h
parentb1a57bbfcc17c87e5cc76695ebb0565380c7501a (diff)
downloadlinux-3ca676e4ca60d1834bb77535dafe24169cadacef.tar.xz
kgdb: Prevent infinite recursive entries to the debugger
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>
Diffstat (limited to 'include/linux/kgdb.h')
0 files changed, 0 insertions, 0 deletions