Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1021200rdd; Wed, 10 Jan 2024 06:31:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNPsWMB11T+mmn2e3icUZGjHoB7FJfNOEViTcT3pwulEviujhpudQ40qythE6rugPe63Wf X-Received: by 2002:a17:906:fa91:b0:a28:e67e:9b36 with SMTP id lt17-20020a170906fa9100b00a28e67e9b36mr675316ejb.102.1704897065794; Wed, 10 Jan 2024 06:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704897065; cv=none; d=google.com; s=arc-20160816; b=DaK1SZJmaU1rBTyvNiNVTaTEy78uyUG5+336Fw+u3UH1UQBXDDCqwPM+RW9wiMZt+F +o7JMlzfRE/rPBZVz8xIuqMiqxmL5Bu1fln1jtvAfAdTXPKzWLYR6AHsZsVRckgww+b9 mSJJNqH0DYNok09aBuhh3ONhLfG2pj32qnClYqVYGJHob0Rdeyfr4tEOV0M6MzHa2gB+ 71dHDqU+iL8yEPv0d9ftov85E9XHMEGEoV6j7O9g1sxKrrtIBfkpXf5/pkOZofDW2NNl nWwBmupvH92UgSDBOiinf4qtXwvBDwSs33Bm4JRSidpREvUuchuA96ScjKUAXTzZUau5 RURw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=NUHtN7Ow773G2ZKEdASk6unjuADbbEAnPh+gfAOkG6o=; fh=iaDotZMdhfxRvqlJLXPftsWrvzqtGUaS6OU3C1WHZxc=; b=UcAF7udV2UJI7UWz4yTUqBNza9OXeXFGd6QQAk7l9GX0o+kCGOxU3iaoSW+H5gw1o9 tBvWWaB8fgRwgSCHrvp68ldbfaPg0FcJ2kMyv7Xjs7UG03JI0Z1xgOJxUx4INsG206gy IhlSCb4OFIKvMGxYn7Vw+SVdfgzU30JFWC4aEHpK7rxuXSKydJaHHjL9zUH7mJ25Zrrw ShcZJNAUfS2Rp5j09CI9FodrMDxnAyL0NKV5TQUE2coG2Ujw7iImyrBNOeumH79a+QHE yElsDxIGuW4bHOVPoUymZJ50TN1a6UIYZ3DybrQUEcBd7hGoXim89m7Y0s+Zx7rg1UYz N8rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gdKF9xbq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-22345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z17-20020a1709060f1100b00a28b300852dsi1726368eji.928.2024.01.10.06.31.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 06:31:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22345-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=@linutronix.de header.s=2020 header.b=gdKF9xbq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-22345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.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 371361F24E91 for ; Wed, 10 Jan 2024 14:21:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 468224A9A3; Wed, 10 Jan 2024 14:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gdKF9xbq"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Fe32LR2E" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2CEBE4A997 for ; Wed, 10 Jan 2024 14:20:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1704896451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NUHtN7Ow773G2ZKEdASk6unjuADbbEAnPh+gfAOkG6o=; b=gdKF9xbqP4PrqQKf6LY1QIvsMZz6SEhF/Xjlu+CQ7lzISpfM7H/iFL9AmaUatndfjb83Qf qzq49lVoZ5PMCcDv0VbtJ6FLN3sMUUXpcqfYcV2jMbpbHMvNW7dFKYAsLvTrAzZvBl5UOE SL2+u1nK5Uk85v8zuD34KgP4b7uWMj05SxZxL/vVMsqbfqKAdSuUjh8lKXhxfFYwzVKj5D /uthCBjmNQ9rCiC7Rzdix3wjeJzhzB7CK7arqT0qOE5XoXrrPgwTfoSp+8l5XLNZiKD35h ZsJMlyNpRT4O+jMRJnxiiNJV/N2KFVeQBELPUjv2JdAfue+442jC5+TeHIBCjg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1704896451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NUHtN7Ow773G2ZKEdASk6unjuADbbEAnPh+gfAOkG6o=; b=Fe32LR2EVhHUOEHoRMUzyb+p+hBsGTqgkRtfY2N1rSw/5SQT+Pdd7e9Qwd9F8nLzzoAK58 LA2Wpul8FUZFQrDQ== To: Andi Kleen Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/mtrr: Check if fixed MTRRs exist before saving them In-Reply-To: References: <20240105163711.9278-1-ak@linux.intel.com> <87plyajphp.ffs@tglx> Date: Wed, 10 Jan 2024 15:20:50 +0100 Message-ID: <87cyu9jmm5.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, Jan 09 2024 at 20:24, Andi Kleen wrote: > On Tue, Jan 09, 2024 at 08:06:26PM +0100, Thomas Gleixner wrote: >> On Fri, Jan 05 2024 at 08:37, Andi Kleen wrote: >> > This one place forgot to check the fixed capability. >> >> What's the consequence of that missing chec > > You get a WARN_ON for a WRMSR failing if you don't have the MSR. > >> and shouldn't this have a Fixes tag? > > It's more an ancient bug back dating back to my tenure in 2007, but here it is: > > Fixes: 2b1f6278d77c ("[PATCH] x86: Save the MTRRs of the BSP before") Care to send a V2 with a less meager changelog?