From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5425B2F0C45 for ; Mon, 30 Mar 2026 22:59:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774911590; cv=none; b=rrJMshMbGrYHoNE9LfKmxUXgvvTPZG2CLr7oKO84jCCwKGrcUa5kSPNN3UUZ0pv7ZfBNW78eCJwwYQlHtCSApvEg1rp7+W0DJuYweedTRWdi2xXy80ct8JtMMPZ5N/5bLzClNWcyWKuY/raHSH0niJ9P4oeiBkh8YmVF7Npy73Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774911590; c=relaxed/simple; bh=1EaRxKFlQmws88OUUBkAEZIvPJuPSkFOitUjZfLrYsM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ssb2oBImRyYRqTZ1Z9mYmzD1wxOpWuusYbJIf2oZjb/XyyW9bri8rL9C//ovB39OAqxmrJk57uRjcJrZEPCU15OyWHkRNBjmoRiEephxezIZ363JpPidaEWQ/VrsIud54WhwIB4Pi2bkr2RHJnmlpp+6BnVt+S/7HSc2SjEdzyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=fail (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=d/X8Sfdj reason="signature verification failed"; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="d/X8Sfdj" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id EC9AA40E0299; Mon, 30 Mar 2026 22:59:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=fail (4096-bit key) reason="fail (body has been altered)" header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jIF6r_cFc82C; Mon, 30 Mar 2026 22:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1774911583; bh=47VtQhUhfWv+7vNmfW6AE9W4AxsYfX71IDk1sAB4s3w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d/X8SfdjE8ETvjzY3ONaLT75RHRX2Schph/Hj194+RKMqHJbUvN2IewrzO0z3nsAD TiGaAVg0JVRpN3mIWUWi5v3ELETddMov2UPgeVXq1A1yy0oSQWfpWeBmdP1QmtnLGl lhxE/CMPK1UAbmlG2hMCYk7Ri6WanYBQKwSnqijwk1pAdP5naLdv6Vhdy815Ahq5X7 yNiTVWU7dUSsVjXSW1vg70yDSud6aK5glqbqwC7pb7I3h6Q8bkfI2zWwjkyVuyN9pM SErteO/ePV6bpwcjD7yhsaneOSSqWReYtwwQw2tZgXNg1jhSi7i8M4qMtuEQZHpyoM cFslQRBWRiL8KjdkEuXeHv4D/iSBqywouNyThhHG+6izpHHJyzILN4bWURRfJgfukK SwliQ/wMisN9lab9AAqBIqQKbrEezf9wOFmu04rkr/AuvbY/J8S9belgE/FSM9fxBS ptA/Z//LcJXQVCYE9DYiunaKoAMriLpnz9pAoG//qwgop05zK28/UESi4RQBAOGU+3 5hfiJqObAAyeHoFVOBbrNGyeWTZLCXm9fadzXPrVeTIDf0iTX/kyx8kxdL1PzhCIpq vH7leAWuZcUO9+ReDSu+RRRVykao+6GEZrET1u11+VKWVQ3Zd+irdMg0C+NcPBt/Gu MYlFnfCNKE+M3U7IcrERinv0= Received: from zn.tnic (p5de8e020.dip0.t-ipconnect.de [93.232.224.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with UTF8SMTPSA id 4195040E016E; Mon, 30 Mar 2026 22:59:22 +0000 (UTC) Date: Tue, 31 Mar 2026 00:59:15 +0200 From: Borislav Petkov To: "H. Peter Anvin" Cc: Maciej Wieczor-Retman , dave.hansen@linux.intel.com, xin@zytor.com, chang.seok.bae@intel.com, mingo@redhat.com, elena.reshetova@intel.com, maciej.wieczor-retman@intel.com, babu.moger@amd.com, sohil.mehta@intel.com, pawan.kumar.gupta@linux.intel.com, pmladek@suse.com, nik.borisov@suse.com, ptesarik@suse.com, darwi@linutronix.de, tglx@kernel.org, peterz@infradead.org, jpoimboe@kernel.org, ak@linux.intel.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v12 2/4] x86/cpu: Check if feature string is non-zero Message-ID: <20260330225915.GKacsAQ6o_LuNY0hbc@fat_crate.local> References: <20260330200045.GUacrWbcsBhp9a-kfb@fat_crate.local> <20260330211511.GIacrn373-FN3Yy_p4@fat_crate.local> <3CFC48BC-615C-4A39-A660-2B348DF13B9E@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3CFC48BC-615C-4A39-A660-2B348DF13B9E@zytor.com> Content-Transfer-Encoding: quoted-printable On Mon, Mar 30, 2026 at 02:44:56PM -0700, H. Peter Anvin wrote: > The Right Thing=E2=84=A2 would be to have a table in the kernel which i= ncludes *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 ca= n simply look up the feature from word and bit number. > It doesn't help one iota, either, that modprobe is supposed to know wha= t the > numeric bit positions mean, either. It is a pretty egregious design err= or. That was designed in ancient times, I'd presume. :) --=20 Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette