Re: [PATCH v2] lkdtm/bugs: add test for panic() with stuck secondary CPUs

From: Kees Cook
Date: Sat Sep 23 2023 - 00:01:27 EST


On Thu, 21 Sep 2023 17:16:34 +0100, Mark Rutland wrote:
> Upon a panic() the kernel will use either smp_send_stop() or
> crash_smp_send_stop() to attempt to stop secondary CPUs via an IPI,
> which may or may not be an NMI. Generally it's preferable that this is an
> NMI so that CPUs can be stopped in as many situations as possible, but
> it's not always possible to provide an NMI, and there are cases where
> CPUs may be unable to handle the NMI regardless.
>
> [...]

I added a line to tests.tst and applied this to for-next/hardening, thanks!

[1/1] lkdtm/bugs: add test for panic() with stuck secondary CPUs
https://git.kernel.org/kees/c/5fb07db970cf

Take care,

--
Kees Cook