Re: [PATCH] x86/nmi: Use trylock in __register_nmi_handler() when in_nmi()

From: Peter Zijlstra
Date: Thu Nov 28 2024 - 04:29:17 EST


On Wed, Nov 27, 2024 at 06:34:55PM -0500, Waiman Long wrote:
> The __register_nmi_handler() function can be called in NMI context from
> nmi_shootdown_cpus() leading to a lockdep splat like the following.

This seems fundamentally insane. Why are we okay with this?