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 5AAD63B47C9 for ; Mon, 23 Mar 2026 16:36:23 +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=1774283784; cv=none; b=iFHBlASPq8x2UYbd54cudD7Jv40y7dDuIeLXChfkCJpvdDC6X0pQuiDxeug89pGAKbCco0ln6vVYBHP1J+Cktft0hb1rqTPXPoJCJij/mysoHwDqrjWFyfZ9wo2OGMCVzAsp+hf1c3a8z5EbggVx3GA1L8BSRYsjirOy+Rq549M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774283784; c=relaxed/simple; bh=VwnMw+TPDyIN1cyZ2gA3zoTDJGZvTED1G/UK+nRumJQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ET+AcxDjOJycFDziFhc6BRidY0WNrPwBzyRcQDHxZ4w+1+Ixsgd1WeoLEAAJTdWFE6zt8GBrkizJxYFuW9itgnF94CsOEpee8AipAZV1cJvTGQmDovssfrLPlV4B9mTfeoo71ldn/TJnyH3YZocykwRVmYJoS6d//LVJPmWj/ik= 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=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=YOhs/vmg; 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=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="YOhs/vmg" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 26A0E40E019D; Mon, 23 Mar 2026 16:36:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) 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 QiR8rrQpsKRT; Mon, 23 Mar 2026 16:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1774283776; bh=LkWM0lQCv9H2j6o25jiG7MwojzeO4r+7azSaz/YlzPo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YOhs/vmgB2u2044ZOmhVwofebuM9cXEHvtD3DQ3FzfbEtc954D4WXI/ct7emMRCkb XuDuWeBBZJIPUyT2i+mF6tpPEF6ZZXEaW2++uI07ZKE9LhmYW+LYQPw9t46V08REjL Fp9UpO/UgUOHrBp9O/FoGxrPtIW5GRFZjt/FEieXyCG8jXs9OLq5lkRX0lRivx3FMf DjLA7Q2aUkFOKWNhyE7dLhH0DU0PqQ5anb0uLCd3emAXZdesB/+u4jzoMBZmRh9Dtd 5Sk4P4uHq2gelrM64Y8tJMZbFCjsZnjXwnn1DQWG1aLOlvYq/YqqrgAg+C5TVHLprk 5jDMCtoeyw9MMZW8I/HrkZDoH3BRaqAb6jBV475WERsXD6kEaumQci/z8gCvFxX4QY SpDG7P9+piLEeabZ/QTbMbBDwHhXrlpv25RnMn3yrWuEkBp16uhOmr6JfABSjPZs1m lo87PB0ugd/1QjffIM1eF0foN17zlpBKyy1FnmJYM5IUJVpgpAyxuMzyJ4HOziASug au8UAiVdnYHrezdWI0qYJcHd9JRKzLi5VPTqAfC0IrY8a5w6LH3Zl60OdC1O+F5v9v 6h5vVmKb6zLFyLL07e6lHC7L/klxf2B4JEP+AR86vHvI0M4pe4k0qpxoyZfi/Nik9m VXZpUVkgNhswYZDobp70qIto= 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 75A0B40E0031; Mon, 23 Mar 2026 16:35:58 +0000 (UTC) Date: Mon, 23 Mar 2026 17:35:57 +0100 From: Borislav Petkov To: Maciej Wieczor-Retman Cc: tglx@kernel.org, peterz@infradead.org, xin@zytor.com, maciej.wieczor-retman@intel.com, babu.moger@amd.com, chang.seok.bae@intel.com, sohil.mehta@intel.com, dave.hansen@linux.intel.com, jpoimboe@kernel.org, elena.reshetova@intel.com, hpa@zytor.com, pawan.kumar.gupta@linux.intel.com, ak@linux.intel.com, darwi@linutronix.de, mingo@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 4/4] x86/cpu: Clear feature bits whose dependencies were cleared Message-ID: <20260323163557.GHacFr7VbKIADqonuX@fat_crate.local> References: 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: On Fri, Mar 20, 2026 at 12:50:29PM +0000, Maciej Wieczor-Retman wrote: > From: Maciej Wieczor-Retman > > After cpu_caps_cleared[] is initialized with DISABLED_MASK_INIT, > features present in disabled bitmasks are cleared from x86_capability[]. > However features that depend on them and are not part of any disabled > mask are not cleared by anything. They can trigger the warning in > check_cpufeature_deps(), as before both features would show up as > enabled even though they weren't. The uncleared features can also still > falsely show up in /proc/cpuinfo. Well, why aren't we clearing those apply_forced_caps() too instead of clearing them at check time? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette