Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3151314imu; Fri, 18 Jan 2019 05:45:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Rn2zyjL9l0qMWcS8TSY27wTX/6GSwGEkQZq0jBMsK9k/cyRfpb+h5z8e3LZ7kBS9vsOkx X-Received: by 2002:a17:902:7896:: with SMTP id q22mr19513721pll.280.1547819135516; Fri, 18 Jan 2019 05:45:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547819135; cv=none; d=google.com; s=arc-20160816; b=tbMx68bKL8563WBJUzQE+61whSElnErkyy6xDrXBHpcHMH0KQbgJ5HoaOGccREkI8Z 2Eoj9yj+0heORJuRkKtGHlsXekaWUJ06IT/vZBPapW8hhXMOG98a+mamtrx7e0Ce4eQ5 fKD4K50bbgeUdhAlg/ONN4MdFe8bFspXysr/NtS7pMGmYPRxX0vpEFTQAfsdzd26y2JM LK+vVnscZuqZT/3idLlGGW7ofYXLLTpVkd2aGLGPakEphSI237nKMtvsWy4q0DCtjw0W +Jwk1SYLRPTx7NWONQYVThHuVlKABAulHXolt6Li2VXili13JmBWwhaUnLIqzXJLzbw7 KyRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=r1wVl6QPDlhM/57aEphiYxQWDYjyZOJOK+G0Wz63l3M=; b=tnJZ7GyyU73f/IRkjGiaBNRl/c/fg67CnwxKl9ozPAgrtr02FTyBDYolmhgFuTcnk3 sEEn/R+LnM5WlzchTpzOlcIuXlDOHU/McT+aV5Ulo9/hOahvPpzXO/OQoVrLUQzGRviE R/KTz+Dne0A0opTVx8j3OfbPwbZzpAaAXcutwv2u3dvnjimuOpSUx371KwBjdH5EiRV+ M+lEOWdY0LvLKi7fa4+nZ6hftY0dMwqcoGnbAL+WZs6lvsdEmmdrtLXsninZN8rbQZnc JP0lUkD7Fc2vkXVWFZZWKl64mJ3B/Bgwy0om24NrnRJB3POiBoLc1iRw6rqrmsYw6zPs naSA== 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 l64si4528956pge.168.2019.01.18.05.45.17; Fri, 18 Jan 2019 05:45:35 -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 S1727581AbfARNmv (ORCPT + 99 others); Fri, 18 Jan 2019 08:42:51 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:43277 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727017AbfARNmu (ORCPT ); Fri, 18 Jan 2019 08:42:50 -0500 Received: by mail-io1-f67.google.com with SMTP id b23so10691639ios.10 for ; Fri, 18 Jan 2019 05:42:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r1wVl6QPDlhM/57aEphiYxQWDYjyZOJOK+G0Wz63l3M=; b=fbznnZJJAORcWbmJY82Em1oddRwr9gRgchEX4y9/hSCnuhkZ87+0NRo9hdU3Mjd2jP v7H9EbmBAsScoZPT45aREPYTEM7lh6eWdbBsoqYzqa2fovW90//M/js80vgxflPcNSIA +3ibzbUWXDaUs2mlMjbI/OnBCoylHBX1KdaaFxVqTZdH7RuXhEb/geM0PbD/j3YKVyRm 2ZWXdPh3KcKApy1fFvRQ2L+3ZeGdedXfpbOraVAN7bQzIR2tplnPbbeIT1YMqDL0rehR 2eoMxQBzUiRrfzSg+DRSaHYRC4WcvkQ0FzbfN0f57MDWw5pONcEM/LklBhe2BEQ63VH9 GN3Q== X-Gm-Message-State: AJcUukcj+o+3RbywUo6Y+o4PSRqavBmZY91etU1wUMPnBRLXX0+0noDJ nfeP+113kvT91cmuOMRDxuS5mRmeE+swDVfCDMXV8w== X-Received: by 2002:a6b:b502:: with SMTP id e2mr9475079iof.43.1547818969774; Fri, 18 Jan 2019 05:42:49 -0800 (PST) MIME-Version: 1.0 References: <20190118091733.29940-1-kasong@redhat.com> <1547812432.3982.55.camel@linux.ibm.com> <20190118123437.GA30929@dhcp-128-65.nay.redhat.com> <20190118123745.GA31072@dhcp-128-65.nay.redhat.com> In-Reply-To: <20190118123745.GA31072@dhcp-128-65.nay.redhat.com> From: Kairui Song Date: Fri, 18 Jan 2019 21:42:38 +0800 Message-ID: Subject: Re: [PATCH v4 0/2] let kexec_file_load use platform keyring to verify the kernel image To: Dave Young Cc: Mimi Zohar , Linux Kernel Mailing List , David Howells , David Woodhouse , jwboyer@fedoraproject.org, keyrings@vger.kernel.org, jmorris@namei.org, serge@hallyn.com, bauerman@linux.ibm.com, Eric Biggers , nayna@linux.ibm.com, linux-integrity , kexec@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 18, 2019 at 8:37 PM Dave Young wrote: > > On 01/18/19 at 08:34pm, Dave Young wrote: > > On 01/18/19 at 06:53am, Mimi Zohar wrote: > > > On Fri, 2019-01-18 at 17:17 +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. > > > > > > Kairui, when people review patches, the comments could be specific, > > > but are normally generic. My review included a couple of generic > > > suggestions - not to use "#ifdef" in C code (eg. is_enabled), use the > > > term "preboot" keys, and remove any references to "other components". > > > > > > After all the wording suggestions I've made, you are still saying, "So > > > other components could use this keyring as well". Really?! How the > > > platform keyring will be used in the future, is up to you and others > > > to convince Linus. At least for now, please limit its usage to > > > verifying the PE signed kernel image. If this patch set needs to be > > > reposted, please remove all references to "other components". > > > > > > Dave/David, are you ok with Kairui's usage of "#ifdef's"? Dave, you > > > Acked the original post. Can I include it? Can we get some > > > additional Ack's on these patches? > > > > It is better to update patch to use IS_ENABLED in patch 1/2 as well. > > Hmm, not only for patch 1/2, patch 2/2 also need an update > > > Other than that, for kexec part I'm fine with an ack. > > > > Thanks > > Dave Thanks for the review again, will update the patch using IS_ENABLED along with update the cover letter shortly. -- Best Regards, Kairui Song