Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp393611lqh; Sat, 4 May 2024 05:48:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0XeRWI34dR61d9YefyV1B/LLXvmDOMobl/VubK6BI2q89RXkEwwgYLpUSK+4i2Qz3bGPzPwW4MK/ovQiwzZ3o/fYCBxW7JRAwVODwpw== X-Google-Smtp-Source: AGHT+IEG+kirggaf+6MXMJ55gqIG+INuqREtae5UfIDnPm292L4hEf31/AerzDnQV49FOxXB2KNu X-Received: by 2002:a05:620a:1908:b0:792:8dc2:11d9 with SMTP id bj8-20020a05620a190800b007928dc211d9mr1196005qkb.29.1714826936598; Sat, 04 May 2024 05:48:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714826936; cv=pass; d=google.com; s=arc-20160816; b=DBQuMp7EUL+MAvkhDh3nNyfvT/doRo6N59zWTP4eGQTB/2/VpLOAkEd6KoVU0OXNZB MBN5lMHkXgOlelgYReofF+jMSn7DhAko6NtF/YHbuKpWKu2e+TzfCaKhaGkWVF0xP19W +j4DMQk/FQjJKs1FPCPXkOtmpmUlPFZfUuQE73j5/qbKEvSfUn/sZ/UB78jwKr4UvkG6 bser9rnMrkFxocGWBrtxgxKQtDT9liKTLZ+wCufNjX9UM/Mq6FeXQsmpz5nAyHKtd3LB vJXrqLWkwIjQORJc4coQU6hOf+6VHi/mQOu+1D2p//BDm0Gfac1oDb9jyj9RL4qrrgVS MBIw== 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=LrJj8vSWMKfbuqba2mvrvHrZRUWSesuObjuOZBfOpQM=; fh=IDKC/cSfrWPhBWolzVEMjxzMuHsAOF+K1pUrRU4bGuk=; b=GmKm4es8mCkHBF7+BpNcZJPzm0o2uKThhByWhYuYqs+O3RgvXF72WSwBz+I8zJA2Yb 7B5DMBUDb/NvDYdhboOmGyyLrXgdG2blp0DVgb4hdJoOQYlgR3i1BXUsePWCTy1isXim OW0evSqn/gGhc1ybiO+ABbv3WwLvmH+dn85gHWHP44XXiCN6IlNR8osvSM27+J+4dbOH lGlS/QB7h+hTpHflfSy1eQgDEPJrzjB7a+6VWMtTbDkJJ3YPF2aXAV6RzGvzC1kaXyLi fYYMKeKuTnQLgNcImTDrI8z09uODTzR5J4bvSb5qKvSqNzgK7vViiSG/Sn+ZC5eEMUeB xi5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=FGtRPxnW; 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-168656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bi9-20020a05620a318900b0078ec8244f78si6029813qkb.28.2024.05.04.05.48.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 05:48:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=FGtRPxnW; 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-168656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168656-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 534EF1C20D03 for ; Sat, 4 May 2024 12:48:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10E1322611; Sat, 4 May 2024 12:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="FGtRPxnW" 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 F0A5557CAE for ; Sat, 4 May 2024 12:48:48 +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=1714826931; cv=none; b=NQj8B5DFftD/1uZ3t9ZvJdupbTdQf6bgqslSXylWE2NAQ8/6sj07/afkb66sKNzOAWH84bLnLJy1007gs1AHCH6IkjxzsHvOqh8bXmeoK+VDXYWSZgjnx70Rdf+j80hfS5GNnJhPBC3O1BTSjbDSed6R/9SILM/gyKBLTW3RfhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714826931; c=relaxed/simple; bh=8syyJolbHZMzXr+DXHqN9dTmmG+jbo+LIYyEd/NYkzE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r0aKqXIJWzniJjIMzNfqm6TTRTBrKgYTvCpUxUC8u7XcRfKzxxz3pVVODRTyPoU79DSC75cy9VCyBszrRwj0uBEgN/8ipzhmk7LtJDenozzvgtFp12mvnFcw2V9RFWEemdnjxV4WdtTUQxPbIDSnq4rnWQ+D+7fqBzhlzFGZrEM= 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=FGtRPxnW; 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 5D65340E0205; Sat, 4 May 2024 12:48:40 +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 3LN0uWBaxltV; Sat, 4 May 2024 12:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714826917; bh=LrJj8vSWMKfbuqba2mvrvHrZRUWSesuObjuOZBfOpQM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FGtRPxnWV4Yeqv6tiPbhTodrWaB3Kumy7jXfT61O9CtR6CMrbzCslIPq7rjHaHHbb DD2ntL3N4tcV4owRIH4Vdu4t1+F1UChKgOdznpsIEP30eLT9kTY/fDTU3I4ChgeW6R mT4Fsg2WFTKb/BVWrVvGwAyJKThlUVigEDxTcIhrTF+j2dctHPxpI4Ao1tTbYLklni Rd9bB+/Gr+tHKX1IRCALzdEeQFhrR+JNaNyxGnFkflI/hf0qOgIkozPrhDqndBVxiH 2LdteTNhX+fVcu7+Uk3I1icf7IfUgHcIrrUXOkGDKF0xy0DwG8tVnVOpiTgimx8pPJ GUIf79sBHZPqumz/l7VyLgARIQCQKpeofAYNvqJkhHbvQRslek02kER2iy7b/Z9FUS jXdy7h3UhwiqJLDRXFL2AjNVja4xRejl5Re5UL0VVwLi/05xlnlsvt2Fq0YfxPY7Kc HM/YL9R5lH6IfGU9RttpG+LSwrp8ZGquwbMD5KAdQ/mQA94ImQ6EpHoAM92pytqwwL BLvFIHjC3PpvPSRSjoyUj4mW2BAPNEMPNMat+U2zD26mBAIxjcnEBz3XPNEGFOqkvr ACL+XEg0RUr5e76nLykkkoK+TxvKt1+MrT/oKsUN41Nxw3hegf/1KMCubXQRUWT6lz xBaBn+ZOQk4dzhnqBDU6xmpQ= 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 1632040E01A1; Sat, 4 May 2024 12:48:29 +0000 (UTC) Date: Sat, 4 May 2024 14:48:22 +0200 From: Borislav Petkov To: Sean Christopherson , kernel test robot Cc: 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: <20240504124822.GAZjYulrGPPX_4w4zK@fat_crate.local> References: <202404302233.f27f91b2-oliver.sang@intel.com> <20240430172313.GCZjEpAfUECkEZ9S5L@fat_crate.local> <20240430193211.GEZjFHO0ayDXtgvbE7@fat_crate.local> <20240430223305.GFZjFxoSha7S5BYbIu@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: <20240430223305.GFZjFxoSha7S5BYbIu@fat_crate.local> On Wed, May 01, 2024 at 12:33:05AM +0200, Borislav Petkov wrote: > 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. Two simple patches as a reply to this. Oliver, can you run them on your box pls? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette