Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp690967pxb; Thu, 12 Nov 2020 13:56:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVIvc15Hf5fcOCOra8hgTIKi528rl19TFUiObOkRrTce7d0vVJKCRXd/kqmqABWqVjGPt3 X-Received: by 2002:a17:906:7247:: with SMTP id n7mr1448708ejk.174.1605218192294; Thu, 12 Nov 2020 13:56:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605218192; cv=none; d=google.com; s=arc-20160816; b=NYQ50QXI2xDd4RpojKPKqXssb31yY+Si10sfiVp/GCKlt/ryieiZBJ92Z8zBGyg8FF JFz47ObBsCx3W09wyLMfPLaol0MeHaurZIitcp6vV0zPbFGSDlsOEJVXHnc8/8gaPmbA +pDtqGwFXQjyMvt4Na38bQZkXbcHaA7MC0Bx7sVuaWgFIlFyUFaCfpivjuDZkdlUlvLU BkweYlXusYVZomipKg1b/8CmBPWaeB/SG9bGNnwODyAnFtVzdQcfJXaiANUge3Cs7fqA HqEbTIa9/1w9N+IkY4eFwOaz1GDrw9NLHJcjeYLYwm840o1T8m9mN7LnsZMj7Ji/NTpX 6oNw== 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=AuZxyBY1MzpWm6LsKUjx3a+IgSix2fWW0XvD4lLRlwA=; b=O9Pzp15ny/aeXqWCV+clgTIWO9JrsH7OBexmTRCqzlOieH/SSg9nQEywuRcDgVIDEU ma/QLGLVhLoA5rOELGQ2CXGhi7IdrDZ6ICdpSe0HbxW7EArYnRceHlJb/zHZLlJfIDKZ h0gO4XH/AVJ6nBOLS3XMOQ2VDhJTv9+BZpFl17gBRO4AxNcDcE9uv19UClJ/r8Hb+TKb JkRZtIbWXjJ+PaQNdIBXa3dKtmChV6lfEni9XlWO0W3sguJt+VloZcu4M3WEK7nf60Tc Mzf739FXsEonw3t0JVclclxQQqmGaUIv4Vn/wyW5t6xng80xg6aEEH6VEHUPWRV7PJTE KUzg== 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 df7si6092858edb.44.2020.11.12.13.56.08; Thu, 12 Nov 2020 13:56:32 -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 S1727214AbgKLVyp (ORCPT + 99 others); Thu, 12 Nov 2020 16:54:45 -0500 Received: from mga12.intel.com ([192.55.52.136]:3358 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbgKLVyo (ORCPT ); Thu, 12 Nov 2020 16:54:44 -0500 IronPort-SDR: ZhNaBVOnEN+OzWUQiYMOSC0XPE9znLjb0fsscKvtHNyW4HRFoK/RUGDLwkuMNtCDJhiEnsaiCD hgKKSFuRsjVw== X-IronPort-AV: E=McAfee;i="6000,8403,9803"; a="149657722" X-IronPort-AV: E=Sophos;i="5.77,473,1596524400"; d="scan'208";a="149657722" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 13:54:43 -0800 IronPort-SDR: bXhT6qBaEZfDW1oQovu5ykP34GJQAMF9D7Aesc95KCgiaoffnAH0e/cboIheMZfDlrnyQnY9IT Yfr2+KLuVDQg== X-IronPort-AV: E=Sophos;i="5.77,473,1596524400"; d="scan'208";a="328647158" Received: from otc-nc-03.jf.intel.com (HELO otc-nc-03) ([10.54.39.36]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 13:54:43 -0800 Date: Thu, 12 Nov 2020 13:54:42 -0800 From: "Raj, Ashok" To: Chen Yu Cc: Borislav Petkov , Len Brown , "Rafael J. Wysocki" , Tony Luck , x86@kernel.org, linux-kernel@vger.kernel.org, Ashok Raj , Dave Hansen , Andy Lutomirski Subject: Re: [PATCH][RFC] x86/microcode/intel: check cpu stepping and processor flag before saving microcode Message-ID: <20201112215442.GA40035@otc-nc-03> References: <20201110135247.422-1-yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110135247.422-1-yu.c.chen@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 Cheers, Ashok