[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87wnenqb5y.ffs@tglx>
Date: Sun, 15 May 2022 13:37:29 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: Sean Christopherson <seanjc@...gle.com>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org
Cc: "H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org,
"Guilherme G . Piccoli" <gpiccoli@...lia.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Sean Christopherson <seanjc@...gle.com>
Subject: Re: [PATCH] x86/nmi: Make register_nmi_handler() more robust
On Fri, May 13 2022 at 13:10, Thomas Gleixner wrote:
> @@ -157,7 +157,7 @@ int __register_nmi_handler(unsigned int
> struct nmi_desc *desc = nmi_to_desc(type);
> unsigned long flags;
>
> - if (!action->handler)
> + if (WARN_ON_ONCE(action->handler || !list_empty(&action->list)))
Bah. That should obviously be !action->handler. Let me send V2
Powered by blists - more mailing lists