Received: by 10.192.165.156 with SMTP id m28csp1182581imm; Wed, 18 Apr 2018 05:41:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx48lFcbYLJB6iR6mk1WL0zeu+6uxqAsKTK68ZwsIMh7HybebSuEOcHCiyB2EgXpzWFfv7m6V X-Received: by 10.167.131.203 with SMTP id j11mr1886823pfn.101.1524055264460; Wed, 18 Apr 2018 05:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524055264; cv=none; d=google.com; s=arc-20160816; b=v8uhP+Oa+e2flUO20IJEs7KUZP3dst48zGsbpDXbzU/EXQwhSjRc4uV/T1RHvMBImv N6d6Jg28P6CZO/hD+Sk655XzdDF4HUd1PrspoG4COm2LzYp0PLc3a0CucKNOmvxJucfE iTG5Jr2sb/9yu1bmI9+7bxHdK5oh6n1bl7NWw/Jvkp43p5yTMOWH/TnlCM/GFH10vHF1 2j+RRR2ws9wZJI2Onwwh8f/25ZbZHPe7xPCeYLbq9c4US+MYpYrGgw2o/JB+C8Ey5ZyR hkeMtDR9tKNz2ZC8Gz75oSfTH3rvhr5NlwWv0L27wLx/Ux1JOPQVfa1USbE59ZU/zfiY 2zvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=wK8e8oxTRdb2UVoE8eieHSxb7OIjNbfXfPzUkwJRsvw=; b=NlkybAY4KALfXaNm3v1DlzYd3RTsYMbyk4d0Nrlwxr4aVL9xTYXwjPulG8WZ1er/iD FpbcIMnu7CaD6dqgvQRURgL8H3jdLFVtxgdD79t3+AH7+6MqVsiDGJMm8cAX/pWen0z5 wCTULjLrwJFZWse/FXtE64eEEouVbJDxiBtBYZoLvW6gkBCLIE6k8reWPZwQxJhXT1KB pMbzNPmmP7zH8m3464j+1Z9ZzCIQ29nSipwKMo6wRYGlXEiy4CycvwrLBfiVt/5nGrwK S7fx+Qk4mD8V3CFhYNrWU2xMWZgpF1PBdoAAWgQjlKWiPo2lzspgoNCWdJFAWtwByCJL 0TSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si1066540pfi.113.2018.04.18.05.40.49; Wed, 18 Apr 2018 05:41:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753775AbeDRMjd (ORCPT + 99 others); Wed, 18 Apr 2018 08:39:33 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:44482 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752747AbeDRMjc (ORCPT ); Wed, 18 Apr 2018 08:39:32 -0400 Received: by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1f8mMx-0001Qs-TL; Wed, 18 Apr 2018 14:39:27 +0200 Subject: Re: [PATCH v4 01/10] x86/microcode/AMD: Subtract SECTION_HDR_SIZE from file leftover length To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org References: <20180318161200.GA2036@cz.tnic> From: "Maciej S. Szmigiero" Message-ID: Date: Wed, 18 Apr 2018 14:39:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180318161200.GA2036@cz.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.03.2018 17:12, Borislav Petkov wrote: > On Fri, Mar 16, 2018 at 12:07:42AM +0100, Maciej S. Szmigiero wrote: >> verify_patch_size() function verifies whether the microcode container file >> remaining size is large enough to contain a patch of the indicated size. >> >> However, the section header length is not included in this indicated size >> but it is present in the leftover file length so it should be subtracted >> from the leftover file length before passing this value to >> verify_patch_size(). >> >> Signed-off-by: Maciej S. Szmigiero >> --- >> arch/x86/kernel/cpu/microcode/amd.c | 11 ++++++++++- >> 1 file changed, 10 insertions(+), 1 deletion(-) > > I split the comment and applied this: > > --- > From: "Maciej S. Szmigiero" > Date: Fri, 16 Mar 2018 00:07:42 +0100 > Subject: [PATCH] x86/microcode/AMD: Subtract SECTION_HDR_SIZE from file > leftover length Can't really find this commit in any tree I have looked at (bp.git and tip.git at kernel.org). Was it pushed somewhere else? Maciej