[PATCH v2] powerpc/xmon: Also setup debugger hooks when single-stepping
Vaibhav Jain
vaibhav at linux.vnet.ibm.com
Thu May 24 04:21:45 AEST 2018
Michal Suchanek <msuchanek at suse.de> writes:
> When single-stepping kernel code from xmon without a debug hook enabled
> the kernel crashes. This can happen when kernel starts with xmon on
> crash disabled but xmon is entered using sysrq.
>
> Call force_enable_xmon when single-stepping in xmon to install the xmon
> debug hooks.
>
> Fixes: e1368d0c9edb ("powerpc/xmon: Setup debugger hooks when first
> break-point is set")
>
> Signed-off-by: Michal Suchanek <msuchanek at suse.de>
> ---
LGTM,
Reviewed-by: Vaibhav Jain <vaibhav at linux.ibm.com>
--
Vaibhav Jain <vaibhav at linux.ibm.com>
Linux Technology Center, IBM India Pvt. Ltd.
More information about the Linuxppc-dev
mailing list