Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp803715pxb; Thu, 12 Nov 2020 17:34:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1NDFt68j0cc8vitu9rztBZoeqoyAe64q8oJiOjNGI24iU+97YzPkRbd27MZuiwB8kTBIo X-Received: by 2002:a50:c88b:: with SMTP id d11mr140543edh.121.1605231249933; Thu, 12 Nov 2020 17:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605231249; cv=none; d=google.com; s=arc-20160816; b=mks53zvLC7LaTcsjMxHBF5UzyyCcbgjfLPNQScsDOZvxV/n3lddnmWWb17bDvQL8Ny OtwhREjy6mlHkpMZNZXDYILrsEj0LFGlruEk6z1q4MOeLB94Igvp+Kf8+gq99JNUEmzb dKmTjHltGGa/s9UsRpkcliv1pL7/SR/Dp5GVS2VHZv5tOwazTs7MsjPHg6FURsiffGAI eXfSfw1+FWTsYafXd1xP8iEXom8KSyFIdsd/CQfpbxQocnARozE9h8Z9fH5UscXTzeFj qfnhuwEz8lc5hzeF4kHHBIym7ut8gNB3lwu57fYJXH/M5IOtBvsob6PYJun5TkQB7te6 DeDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=6uKzOdesMesX3E3YftWYTYMXBZaXfqeXXGfYoeFqAHU=; b=raNY0vABFU3PXZkcLLvuKNtCPnQ2pWOMwg/uPXHSIFZYzyENX3PuQcgdqkBbFAP54s L+xsGEQ1XhvQ9dnVuKkw9MEfGnwIEIUKfhvEaAqQryv9bIkiSKuso10UNHF/B0nfImoO lz6W8tcqQ2rBe4oqFnIATQZEuwuC39G8DvojPws5yzeajLHrhL0VAl4gStA5gNqtkhUH xyfqkwx/8YOpRTkJh8S9cB1Aq2LkZ9i7kizVhWQaenhgeoRGapMxSsVI+PXUF1k1r0yJ IqxR1XySaUsHj/yRt0QsAKmiw6xMPNU4brNNSZeOzRM7/w2Ooc1zU7hHEz/l8Eg6wl9D ox2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si4759405ejc.60.2020.11.12.17.33.47; Thu, 12 Nov 2020 17:34:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726167AbgKMBaj (ORCPT + 99 others); Thu, 12 Nov 2020 20:30:39 -0500 Received: from mga14.intel.com ([192.55.52.115]:51884 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbgKMBaj (ORCPT ); Thu, 12 Nov 2020 20:30:39 -0500 IronPort-SDR: ihf3dvVSbI1AI7Ue4Z4I4ArCKH3PAOso3lEXbapnapGc5wDKuyi79YXMEld4x8Llqau2dN+Mdr XuDdGv8vtvCA== X-IronPort-AV: E=McAfee;i="6000,8403,9803"; a="169627198" X-IronPort-AV: E=Sophos;i="5.77,473,1596524400"; d="scan'208";a="169627198" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 17:30:38 -0800 IronPort-SDR: AJf5rkZSeMBbMQfn3OsMTor6bEcGswjIml/HoDjxLgcBK5LSEwGq3SNYN8saGLJNI4Rz5TSTzG YLHa7WKr7SiA== X-IronPort-AV: E=Sophos;i="5.77,473,1596524400"; d="scan'208";a="542477697" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 17:30:35 -0800 Date: Fri, 13 Nov 2020 09:33:06 +0800 From: Chen Yu To: "Raj, Ashok" Cc: Borislav Petkov , Len Brown , "Rafael J. Wysocki" , Tony Luck , x86@kernel.org, linux-kernel@vger.kernel.org, Dave Hansen , Andy Lutomirski Subject: Re: [PATCH][RFC] x86/microcode/intel: check cpu stepping and processor flag before saving microcode Message-ID: <20201113013306.GA13261@chenyu-office.sh.intel.com> References: <20201110135247.422-1-yu.c.chen@intel.com> <20201112215442.GA40035@otc-nc-03> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112215442.GA40035@otc-nc-03> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ashok, On Thu, Nov 12, 2020 at 01:54:42PM -0800, Raj, Ashok wrote: > Hi ChenYu > > I think you can drop the RFC tag. > > I suppose you can add Cc stable as well. Boris should return next week to > take a look. > Ok, I'll do and send another version out. > > On Tue, Nov 10, 2020 at 09:52:47PM +0800, Chen Yu wrote: > > Currently scan_microcode() leverages microcode_matches() to check if the > > microcode matches the CPU by comparing the family and model. However before > > saving the microcode in scan_microcode(), the processor stepping and flag > > of the microcode signature should also be considered in order to avoid > > incompatible update and caused the failure of microcode update. > > > > > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=208535 > > Fixes: 06b8534cb728 ("x86/microcode: Rework microcode loading") > > Suggested-by: "Raj, Ashok" > > Cc: Borislav Petkov > > Cc: Len Brown > > Cc: "Rafael J. Wysocki" > > Cc: "Raj, Ashok" > > Cc: Tony Luck > > Signed-off-by: Chen Yu > > -- > > Reviewed-by: Ashok Raj > Thanks! Best, Chenyu > Cheers, > Ashok