Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2853262rwr; Fri, 21 Apr 2023 15:36:20 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXP3m6bok4ZfYaXfsEzObUPWToR6uRlb1eMkEuc2l+Jf1pqN7lOWarDWx7J8invb2Vv/CB X-Received: by 2002:a05:6a00:2d96:b0:633:4c01:58b4 with SMTP id fb22-20020a056a002d9600b006334c0158b4mr7246907pfb.2.1682116579938; Fri, 21 Apr 2023 15:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682116579; cv=none; d=google.com; s=arc-20160816; b=zFDG6gttPQcaZTu1IVDA/Osh8ZXodu92u/IA7+8c6+mS2VXobQRgFVudgTe8C0fhr6 fN5BshauE6IoojH1NQdnWHKKRN1e5Cvgjmn0YQrZrb3m/JVUx2Rpm3oh6dM+dHKXOIzD 6X1koa+zud+8zLKKvbg5YaEClOOqpzQ/zNruwf6Ca9aSA9ZgCzMQHyIeguAJiCu9d3Zp cCg8sKYlUa8YBweTf3oztwZPYNUVrsic8ALclKNqhCAAxhYtwGEKCsp/R9kWkwxDh0I+ v1LiaSFwWauhMz4hRwmO8xWpz1Cc/TaHlDYuUndesGGiLeiTfLghO4f0Ub2g7AGmD/+7 bCfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=+xT6n3WApWv7OhmUwRSte3wHtNi3lWiZ0ZaFfUySfsQ=; b=V25HlJZgRBxMi3WhjzPd2qGCb8WCBo1Y8W8J8cxazal2etULMKRYttwDPc2I2oCup1 9zmzWLIzrRL10O87lxoA9bxg9IPI3g4J50EdRUaQuQfjc2LMUfS6WmPUWV0TN8Cd465c zWcTHSpIrgStKs1bLDudOkAF3Q8ZztZH0QbQgrPWsS6jUGzEZ7gYjeAGhshrL1cXrIsA w8JDH72kDtVNnFrTvptMfwTpJaI8DtgtWaa3ChtWQ+3Bj4vlX3S/d+B7ODgNVVYAN7rA vuEuEI1wreIms6QX+nQscCcsVSntMqsq0l2bUeXDTavzhY15CjZNWBNqJyHgXAtfBvYt rYpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PWwqjXUc; dkim=neutral (no key) header.i=@linutronix.de header.b="lJ7F604/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 185-20020a6301c2000000b00523eac95883si5421821pgb.320.2023.04.21.15.36.06; Fri, 21 Apr 2023 15:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PWwqjXUc; dkim=neutral (no key) header.i=@linutronix.de header.b="lJ7F604/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233600AbjDUWfh (ORCPT + 99 others); Fri, 21 Apr 2023 18:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbjDUWfg (ORCPT ); Fri, 21 Apr 2023 18:35:36 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A487270C for ; Fri, 21 Apr 2023 15:35:08 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682116434; 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=+xT6n3WApWv7OhmUwRSte3wHtNi3lWiZ0ZaFfUySfsQ=; b=PWwqjXUcylEbE9ClUnmk5n/sq9rsuKmpFbGDBFqliIXODhb4dGMyts934wmy0f/1ViOi4u wuC0KLOlBydrhGOZGyJn/ub4jzpsxI2jd07cgBy+A7KclE95qFr+ZBvstCJOE5IdsR2aYM R3PSsAjl2pIpfgthtRann3kxViEOBKTctac9GDzTb/WQgf5zMtZo6E4n1w82MDuDehL3bT P4/RRYgf/pI9OAtEOFi1XflW6y5tGl5Nthd4GKZsHDMD8LIYfybPakpWZaIBVuismts3gf wXCZ/Ou/JO5+F0CidbEdhSQAToteL7PSECORa6iJNAaOTYDUnO9aF6jydzRXKA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682116434; 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=+xT6n3WApWv7OhmUwRSte3wHtNi3lWiZ0ZaFfUySfsQ=; b=lJ7F604/uusQyUKfYfzm8nlcTjDOyIBvNY1opOGVa+fida5bmI3GJtfHg8xsuMsog+zRK1 2Sqy/V63K1g7AoDQ== To: Borislav Petkov , X86 ML Cc: LKML , Peter Zijlstra Subject: Re: [PATCH] x86/microcode/AMD: Document which patches are not released for late loading In-Reply-To: <20230415142821.24725-1-bp@alien8.de> References: <20230415142821.24725-1-bp@alien8.de> Date: Sat, 22 Apr 2023 00:33:54 +0200 Message-ID: <87fs8s27cd.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 15 2023 at 16:28, Borislav Petkov wrote: > From: "Borislav Petkov (AMD)" > > PeterZ wanted this spelled out explicitly. Add it to the documentation > so that everyone's on the same page wrt to which microcode patches are > not allowed to be late loaded. > > Suggested-by: Peter Zijlstra (Intel) > Signed-off-by: Borislav Petkov (AMD) > --- > Documentation/x86/microcode.rst | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/x86/microcode.rst b/Documentation/x86/microcode.rst > index 15b52e2b181d..d5ef9184030c 100644 > --- a/Documentation/x86/microcode.rst > +++ b/Documentation/x86/microcode.rst > @@ -218,6 +218,10 @@ a fault happens, the whole core will see it either before the microcode > patch has been applied or after. In either case, T0 and T1 will have the > same microcode revision and nothing intermediate. > > +In addition, microcode patches which modify software-visible features > +like CPUID bits, MSRs, chicken bits, etc are not released for late > +loading. No. Why the heck is AMD any different from Intel vs. late loading? It does not matter at all that the AMD microcode machinery does not have the concurrency issues like the Intel one, which just need some extra care. The software visible feature change issue is exactly the same and the problem of late loading is all about that and not about the concurrency. So Intel got its act together and added a minimal version field into the microcode header. AMD should do exactly the same and not assume that late loading is safe by pretending that updates which modify software visible features are not released. That's just not true. AMD releases microcode updates with software visible changes as does Intel, no? How did all the hardware vulnerability updates, which changed CPUID, MSRs and chicken bits, get distributed? By not releasing them? This patch along with the other which claims that AMD is safe is just wishful thinking material. Boris, please remove them from the for 6.4 queue. Thanks, tglx