Re: [PATCH v12 2/4] x86/cpu: Check if feature string is non-zero
From: H. Peter Anvin
Date: Mon Mar 30 2026 - 20:14:55 EST
On 2026-03-30 15:59, Borislav Petkov wrote:
> On Mon, Mar 30, 2026 at 02:44:56PM -0700, H. Peter Anvin wrote:
>> The Right Thing™ would be to have a table in the kernel which includes *all*
>> the feature bit names, not just the ones exported to /proc/cpuinfo, and use
>> the unfiltered string table for kernel messages (/proc/cpuinfo being
>> filtered via a bitmask, list, or a flag in the table.)
>
> Meh, not convinced. Not sure it is worth the effort and bloating if we can
> simply look up the feature from word and bit number.
>
Bloating? Drop in the bucket compared to other kernel messages. Getting kernel
messages in cleartext is a good thing.
It's testing a flag... not exactly complicated, just didn't want Maciej to
complicate this one patchset with it.
-hpa