[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <07cf71d75b25d8be00eac554244d2a2e15845fd5.camel@intel.com>
Date: Wed, 7 Jan 2026 15:24:28 +0000
From: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
To: "Li, Xiaoyao" <xiaoyao.li@...el.com>, "tglx@...utronix.de"
<tglx@...utronix.de>, "mingo@...hat.com" <mingo@...hat.com>, "Hansen, Dave"
<dave.hansen@...el.com>, "x86@...nel.org" <x86@...nel.org>,
"dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>, "bp@...en8.de"
<bp@...en8.de>
CC: "hpa@...or.com" <hpa@...or.com>, "Chatre, Reinette"
<reinette.chatre@...el.com>, "kas@...nel.org" <kas@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "Qiang,
Chenyi" <chenyi.qiang@...el.com>, "Peng, Chao P" <chao.p.peng@...el.com>
Subject: Re: [PATCH v2] x86/split_lock: Handle unexpected split lock as fatal
On Wed, 2026-01-07 at 07:19 -0800, Dave Hansen wrote:
> On 1/7/26 05:49, Xiaoyao Li wrote:
> > + /*
> > + * If #AC occurs on split lock without
> > X86_FEATURE_SPLIT_LOCK_DETECT
> > + * the kernel cannot handle it by disabling the detection.
> > Treat it as
> > + * fatal regardless of the sld_state.
> > + */
> > + if (!cpu_feature_enabled(X86_FEATURE_SPLIT_LOCK_DETECT))
> > + return true;
>
> If #AC occurs on split lock without X86_FEATURE_SPLIT_LOCK_DETECT,
> that sounds more like a naughty hypervisor or buggy CPU that deserves
> a BUG_ON() rather than a situation where the kernel wants to move
> merrily along.
Can you clarify your feelings on BUG_ON()'s? I was under the impression
that new ones were basically banned, and we should WARN() here to try
to keep running.
Unless we could claim that continuing would destroy something or other
situation a user would never want.
Powered by blists - more mailing lists