Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2586050imu; Thu, 17 Jan 2019 17:39:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN7D4ngTlPqmbX/H8Tp08aKVrvQchdxGiod1F0a9/so+YMcUVU8A521T+30uNxp2m2XGZ2LO X-Received: by 2002:a63:dc0c:: with SMTP id s12mr15856581pgg.398.1547775560347; Thu, 17 Jan 2019 17:39:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547775560; cv=none; d=google.com; s=arc-20160816; b=iBybUo9Z0fTVsqaqiSu6Zp2Xhlm9tr9AIZH5nZvHhb1E4a9y06KtWtUR1udCp/xNlI J8Q18SQQEhMDw/nIoMQJxa6RIKvrIbcrZINfI9SaUMt5kV7y8PuSNiEO8GC3wLUqPfxq ANkqU7fKElvy2J/CzyX3rSWSqP8PYULoTnI6KnGM+2EiZwhfF6mNH/txs2BhpGB99gwt r1OcJHv/2YWydZ+9ZGgkFq1FRYXiilj+pREZ3kKKkpPHyGlCz1+tXZjMWlh8T4nlyZao S156TY7KvHGz3td/VZhkdmerUscrwY4lY7EcRonAVLBxNjXZtndyW2WZsgVBbeQATF2f 6Y2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ltyqbPt303dycDv/+WIsyAed0tuO7hvZ1ssZAirsRxI=; b=SmusK5Y4S3+7hlUO5n67ghp/M4d+zyKx9FLaDWXFzkRF+QY5kGXcpVxc9GHSzEdFHK aepkRxbtZXou8+L5bB+w4/eEXJhBuXRHaLmDOHS1TJOFSdkrSp9VkSa+qkCpKIFq+nji XpmMP2GqbpEbpV7v0NPhw9Oqk0frjxsfv0tcVSWoqKOA+cWWYJ/Alw4DG/vab6FVrr5i n0Pf2WJuQrCYfLB/6afK0zon6kdATKeKU8jI3xLqEQHDhcJ1b7jQbEQfvgr/lVafE+BY 999I07j4x9ll+HyCnsfi+Wr3AO0xVNojnMQErX11QFNqFQyt5WQUBrL/XFHvJSbsIqRG rB+w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si3214812pla.351.2019.01.17.17.38.49; Thu, 17 Jan 2019 17:39:20 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbfARBfl (ORCPT + 99 others); Thu, 17 Jan 2019 20:35:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42224 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfARBfl (ORCPT ); Thu, 17 Jan 2019 20:35:41 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C205B23E6F4; Fri, 18 Jan 2019 01:35:40 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-21.pek2.redhat.com [10.72.12.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5060B60BE5; Fri, 18 Jan 2019 01:35:34 +0000 (UTC) Date: Fri, 18 Jan 2019 09:35:30 +0800 From: Dave Young To: Mimi Zohar Cc: Kairui Song , linux-kernel@vger.kernel.org, dhowells@redhat.com, dwmw2@infradead.org, jwboyer@fedoraproject.org, keyrings@vger.kernel.org, jmorris@namei.org, serge@hallyn.com, bauerman@linux.ibm.com, ebiggers@google.com, nayna@linux.ibm.com, linux-integrity@vger.kernel.org, kexec@lists.infradead.org Subject: Re: [PATCH v3 0/2] let kexec_file_load use platform keyring to verify the kernel image Message-ID: <20190118013530.GA2814@dhcp-128-65.nay.redhat.com> References: <20190116101654.7288-1-kasong@redhat.com> <1547773684.4026.10.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1547773684.4026.10.camel@linux.ibm.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 18 Jan 2019 01:35:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/17/19 at 08:08pm, Mimi Zohar wrote: > On Wed, 2019-01-16 at 18:16 +0800, Kairui Song wrote: > > This patch series adds a .platform_trusted_keys in system_keyring as the > > reference to .platform keyring in integrity subsystem, when platform > > keyring is being initialized it will be updated. So other component could > > use this keyring as well. > > Remove "other component could use ...". > > > > This patch series also let kexec_file_load use platform keyring as fall > > back if it failed to verify the image against secondary keyring, make it > > possible to load kernel signed by third part key if third party key is > > imported in the firmware. > > This is the only reason for these patches. ?Please remove "also". > > > > > After this patch kexec_file_load will be able to verify a signed PE > > bzImage using keys in platform keyring. > > > > Tested in a VM with locally signed kernel with pesign and imported the > > cert to EFI's MokList variable. > > It's taken so long for me to review/test this patch set due to a > regression in sanity_check_segment_list(), introduced somewhere > between 4.20 and 5.0.0-rc1. ?The sgement overlap test - "if ((mend > > pstart) && (mstart < pend))" - fails, returning a -EINVAL. > > Is anyone else seeing this? Mimi, should be this issue? I have sent a fix for that. https://lore.kernel.org/lkml/20181228011247.GA9999@dhcp-128-65.nay.redhat.com/ Thanks Dave