Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2065625ybl; Thu, 15 Aug 2019 06:05:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/n20ujbSXGQUT7+mc0I2aQV/8ORHL5t2r7XIa6ETjzDjk15Y/FGD5twTuMlHwMCDdpzRJ X-Received: by 2002:a63:2c8:: with SMTP id 191mr3352683pgc.139.1565874330506; Thu, 15 Aug 2019 06:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565874330; cv=none; d=google.com; s=arc-20160816; b=AHjM5OYLWNIuIx/Xlgf/qRrZ1chLzogepsDSD11cURp9x3ukLRzblc0bbisQe8WOWN eLjJXHN1g/kKS9M9pkbLGkpXIaGB9iDlCN6XVOkjKNXYVJdriNmvwdQty//YaeMFaUgM WHVsb9MFPggz5z9VsynRt/DfyFbJUQ4xicSQJasjqUFYKKqbr4Iqski6cIb6TYJmOrSh N08dPVDxi0AeBXrmlc4xff/6DxK0KFd4LUJGrSLqiipw5GrZI4EWjEl4y1eXg4v+W1tk nS/S/N6c0O8hlX87h2OrvJ1xGdEgYNFgGtgyvJ/T+K2FTZh798jBUI63Ktz/TUTfmrIX KipA== 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:dkim-signature; bh=0dWebL9fI0U8v/Hpo+dz8Sut2HpNVnveufAiPqP0BQw=; b=PDnTcOsE0XkHi2vahR9KGyaipbTpuApnQhd20QpadvP5e8kF1yCjeDxrSSpEuy2MYw IXPj9PsaOvwV9mrLTUdmnxj3+5Wh9CknQPzkbTtfKa7f0J76i4X68sD9iOkspeUrvNFQ 6QCe41oNtjJ+zV1JG4wnSWMZIQGq5lFKacXLozHKCDXZj5yIh/KL3leuZXN5GonGmcek 4Pcm9yhk6f4zYexacLbcvZLMH8WMxykKugCQCSjWfxK8DGPLLnkV1veijV48bfFMeyoU 7FcvyI5WhScu7lhNnTQhHDtOXTZ1CxQQDX+piihZj/oWSJn/Iakd0Iq88SL5WNLUe4y+ 9fGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FmOkGWme; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w198si1977214pfd.106.2019.08.15.06.05.09; Thu, 15 Aug 2019 06:05:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FmOkGWme; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732144AbfHONDt (ORCPT + 99 others); Thu, 15 Aug 2019 09:03:49 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44817 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732137AbfHONDt (ORCPT ); Thu, 15 Aug 2019 09:03:49 -0400 Received: by mail-lj1-f195.google.com with SMTP id e24so2133042ljg.11 for ; Thu, 15 Aug 2019 06:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0dWebL9fI0U8v/Hpo+dz8Sut2HpNVnveufAiPqP0BQw=; b=FmOkGWme0a9zngByt8Xx69NGtzkfYQoKULWmL12BZ2cCel3xo9BWxubi9OjatpqIqa aCblyK/wBtn4LHnnByVR4FkegV/JwUl6aY5bnqtdVQLwtSTU6w0E8FXGwiwGtBwQfhyQ 1JVGMgzHRIlY4UXyQriDsZFP2cdhFeyc1HbJRyOzuWxjQomyJM1V+qrCyl3BNnkYTAVu ok0fgZ5VuX3x7AI+Ve0xGQg2kqeYy1kg7OVkRp2VOwzeNu5BTeXusBlqXVAPhVZ4k83W anplh+2FtjGKTwwlufYZFFPtJPPN0vuHErIzzrGWR6BJCeQMLPrC6u+PFzzjAuH26anN 2vOQ== 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=0dWebL9fI0U8v/Hpo+dz8Sut2HpNVnveufAiPqP0BQw=; b=gc0irmMnv+d6RbFAAhyrIl6d7g3A4jW9zrF6QyOe1fFOUIyB5VA8jq7XKrRDca5Muk psfZKmHGNwTkHwE58rnAAC7J17Me0sZQF9XJS/6uTFc002TFl9Iwjns5Z/Gv9rf2tW5P YXf7xj+jWXCW4obBbSlZhLwOIY7+j92OptUx2WeiEcTSOYD7DUto60oIef7OX8uRNv4F SQ3SkKl2H4a02yIYo/nixjvmYfxkZ2c1cBUzXkGBEBJzuETwdv+sX5eCM+0LQYIkRU+S hvjoHThEGiJOjHg7yO+0MhVKjRYW34LELcuolEMpGn4Tvf5oJoFbO7g9De03Q6zqYzX+ aPrQ== X-Gm-Message-State: APjAAAV8qqs1p2+iQJObX0KWhKIaAiiqB4KAYZcHeE3POffcZh6Z/ki1 REfeeWolwHkAPBQ2Lv1dBBECsPkxtg7PVxmCwvy6gw== X-Received: by 2002:a05:651c:104a:: with SMTP id x10mr2522077ljm.238.1565874226938; Thu, 15 Aug 2019 06:03:46 -0700 (PDT) MIME-Version: 1.0 References: <1565682784-10234-1-git-send-email-sumit.garg@linaro.org> <1565789078.10490.10.camel@kernel.org> In-Reply-To: <1565789078.10490.10.camel@kernel.org> From: Sumit Garg Date: Thu, 15 Aug 2019 18:33:35 +0530 Message-ID: Subject: Re: [RFC/RFT v4 0/5] Add generic trusted keys framework/subsystem To: Mimi Zohar Cc: keyrings@vger.kernel.org, linux-integrity@vger.kernel.org, "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , linux-security-module@vger.kernel.org, dhowells@redhat.com, Herbert Xu , davem@davemloft.net, peterhuewe@gmx.de, jgg@ziepe.ca, jejb@linux.ibm.com, Jarkko Sakkinen , Arnd Bergmann , Greg Kroah-Hartman , James Morris , "Serge E. Hallyn" , Casey Schaufler , Ard Biesheuvel , Daniel Thompson , Linux Kernel Mailing List , "tee-dev @ lists . linaro . org" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Mimi, On Wed, 14 Aug 2019 at 18:54, Mimi Zohar wrote: > > Hi Sumit, > > On Tue, 2019-08-13 at 13:22 +0530, Sumit Garg wrote: > > This patch-set is an outcome of discussion here [1]. It has evolved very > > much since v1 to create, consolidate and generalize trusted keys > > subsystem. > > > > This framework has been tested with trusted keys support provided via TEE > > but I wasn't able to test it with a TPM device as I don't possess one. It > > would be really helpful if others could test this patch-set using a TPM > > device. > > With the "CONFIG_HEADER_TEST" and "CONFIG_KERNEL_HEADER_TEST" config > options enabled, which is required for linux-next, it fails to build. > TBH, I wasn't aware about this test feature for headers. It looks like the header which fails this test is "include/keys/trusted_tpm.h" which is basically a rename of "include/keys/trusted.h" plus changes in this patch-set. And "include/keys/trusted.h" header is already put under blacklist here: "include/Kbuild +68" as it fails to build. So its that rename due to which build failure is observed now. It seems to be an easy fix for this build failure via following changes: diff --git a/include/keys/trusted_tpm.h b/include/keys/trusted_tpm.h index 7b593447920b..ca1bec0ef65d 100644 --- a/include/keys/trusted_tpm.h +++ b/include/keys/trusted_tpm.h @@ -2,6 +2,9 @@ #ifndef __TRUSTED_TPM_H #define __TRUSTED_TPM_H +#include +#include + /* implementation specific TPM constants */ #define MAX_BUF_SIZE 1024 #define TPM_GETRANDOM_SIZE 14 So I will include above changes in this patch-set and also remove "include/keys/trusted.h" header from the blacklist. -Sumit > Mimi