Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp131259lqm; Tue, 30 Apr 2024 15:33:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzvqzTuSrkOR0cyZtjzmVl9Jr4gBP2CJXdw6GTwyCax4rlq8EccQQApKb3aO/CXAu7t0BGVSFZTnYw75PuvU8ROY+xGtyb3KcrioslQQ== X-Google-Smtp-Source: AGHT+IHquooQP9lCw69IsB7cC4MkJ6VNHXCRAw4uwk4h3K97zRKTTRZuTiMTLQdMsad1jhItKlpq X-Received: by 2002:a17:906:2541:b0:a46:da57:6ee4 with SMTP id j1-20020a170906254100b00a46da576ee4mr685279ejb.73.1714516419174; Tue, 30 Apr 2024 15:33:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714516419; cv=pass; d=google.com; s=arc-20160816; b=CBd6y1KYq8A1T57DyauMo8OfoI60ufLEjc9Oy79n11lEMbMaPEJc9K2obYmYDMF7S9 PUZIbK8XQiy2t7Uh5/TWdVKvpM6fhSaRJ0EoRiGRRDqRpzP8o8LT+EUgVOZbgTXKwc/o 7+ZBSewddqPDW73+zjfW946UqO064pkisRYzerJ8NcUHTyWSbAGnYfq4A9Gg+AuES0yd v642uY7tSxstOthU1g7rYyOV0gGGE7gTtyvj7E9Ib8FjSuCPbJXQcbzBYqtAJ1z7D/AT R/jvy0UAtlxC+u0vo3QT5dgATlQPjY8vwJaSS/aS7sxo1m+tR9C08Q1339WV9GZ9tkbM OuEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DlvATvaWxygVgSVb7uWjq/ccZzNWV0VAB/UNxxNHk3U=; fh=dg6qRZ1TThePOkBt1a+DeLtMOHA0Cro/qjD+6Un7XKo=; b=sqcFLAsuBPdee9YPM3ZcgpAnVYZfqHYgATiYxcufBy3LcDSuE5m5vLREegLQiapZJr Kw4n7iCfAyHo+26/FnerEwbxUyVhp5vD59IipLPCR9NA+D4JC/K197+sTo72RgCXpLot duL9W292oI/CNeiC/F5WM8TfSUHCUvb/PtRdXubFOkdtxjRn6B9H2dVi1veGPxp/RMGs RDXNyooAttJeIabAkpCZhBwdy8SofWq2aJ7g+borUkZWFb8FmH+PH37HKr6q4L/p6S5b IEbBLojNLKPqzYv9auAmwhhcik5putyVbvIeSCqKKKi12wHlWZQe/r5ouE3mxINzxozJ nqbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="Zv3w7/W0"; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-164774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ji20-20020a170907981400b00a5542410798si17101465ejc.937.2024.04.30.15.33.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 15:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="Zv3w7/W0"; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-164774-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D0F071F240F5 for ; Tue, 30 Apr 2024 22:33:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E809C1CD21; Tue, 30 Apr 2024 22:33:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="Zv3w7/W0" 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 37DE61FB4 for ; Tue, 30 Apr 2024 22:33:30 +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=1714516412; cv=none; b=PKzcrIyYOWZVMaPn1EwcN7vznoC0qt8SL2+gyhILBaR3h0lc59yFTLp5PFTkqNG+oTKNDA6DjBhsuvPAcb210biNj4bnjV8RrbPxecPVkSciz6U/9PZkTCF7glZiLl51In900YaIU9nOFZVIwu34Tr+e+b6HiahQqbfX9wsHW1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714516412; c=relaxed/simple; bh=qVJzWg+P1aUqzTwhiutG7+knLlfh5JCpEUlUhqGtNbE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t0Qei038FGmDwgnTRjxcDEJqkhzWXcMtpDL44Usa3fQscV8xTFiZzJnlVDze31NfhsK33s8PLYMGlTijldouQQAYtXvIX0aKn9D365gATTEgiJo4Yxtob8HONu2zGyL9HAKHJRnRcL9QB9p9ThogCyCMvkQuzWEgTpHDKhW0OoI= 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=Zv3w7/W0; 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 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 202C540E01E8; Tue, 30 Apr 2024 22:33:22 +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 Lfpg0u3yzQ3G; Tue, 30 Apr 2024 22:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714516399; bh=DlvATvaWxygVgSVb7uWjq/ccZzNWV0VAB/UNxxNHk3U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zv3w7/W0pMY64ilgG37lz2oezELHaq86PPyeHWJw3n9wA7oad25UbVnPcfCPnU+ok 3dQRsUtD3gCdkkXBUUhHin8/EWbalP85DitVoG4GWMsphM7Y1eu42clmSyAjIyAM6W Objc6wIV5OlCkjBKP/utzBWIpFd90xcJYmGHLLRvr8Z5XjLayCtL5tgM+1RTmpg0Co MsRphpUPmv1b17K9uU4a7HXh27mJPWBsnbQUeHCB39/SWuOgLXXOA43IJ/VNHl0Fkk 2TT7kYaSIQjy3UoUe6K1aatPH2IieJNmYYwHq3W1xORY+IOpvlPpPZ/je5he8Jg+1u otGd5aCs8QOD0S+rLjCpYtZZp8xvUd8NeBMP78UWFVcoy5seHImaeMCqLgU0+ZYtR9 XRLcdJVWQwCqzf5MfbdNTOFhtTusS3yTDZTpoQyyQOpowmqNTqV87I5HjT/Oaxg3vu 3CiTDJ3Wv5xd2JtE3gzPG+SEi4EE16nr5UEUG4uBHElvAiYyli7GozfeTclENXaR6g bWc/kWwzKJCr/PUIiJJyw2RsM+Ig6eWeAFW/i+VkSPWbKyhxHPkqMTmSAa8Revx9+4 yNVqg3thgtrTix4K+Z9NAuSVskh5jt79/w1nZJERBlKZY66Z4CS6KaNI2hLv9PrURN byQa7wlfDyxsrYPJK7w42hEY= Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (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 ESMTPSA id CA8EB40E0187; Tue, 30 Apr 2024 22:33:10 +0000 (UTC) Date: Wed, 1 May 2024 00:33:05 +0200 From: Borislav Petkov To: Sean Christopherson Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar , Srikanth Aithal Subject: Re: [tip:x86/alternatives] [x86/alternatives] ee8962082a: WARNING:at_arch/x86/kernel/cpu/cpuid-deps.c:#do_clear_cpu_cap Message-ID: <20240430223305.GFZjFxoSha7S5BYbIu@fat_crate.local> References: <202404302233.f27f91b2-oliver.sang@intel.com> <20240430172313.GCZjEpAfUECkEZ9S5L@fat_crate.local> <20240430193211.GEZjFHO0ayDXtgvbE7@fat_crate.local> 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 Tue, Apr 30, 2024 at 12:51:02PM -0700, Sean Christopherson wrote: > But that would just mask the underlying problem, it wouldn't actually fix anything > other than making the WARN go away. Unless I'm misreading the splat+code, the > issue isn't that init_ia32_feat_ctl() clears VMX late, it's that the BSP sees > VMX as fully enabled, but at least one AP sees VMX as disabled. > > I don't see how the kernel can expect to function correctly with divergent feature > support across CPUs, i.e. the WARN is a _good_ thing in this case, because it > alerts the user that their system is messed up, e.g. has a bad BIOS or something. Yes, and yes. There are two issues. Clearing feature flags after alternatives have been applied should not happen, and this particular issue with that box. Lemme cook up something in the coming days for the former. As to the box having misconfigured VMX settings, dmesg says: [ 0.055225][ T0] x86/cpu: VMX (outside TXT) disabled by BIOS which means this: (!tboot && !(msr & FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX))) { so... I have no clue what needs to happen here. BIOS update... I hope we won't try to do some nasty fix for b0rked BIOSes again... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette