Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6882785ybi; Wed, 31 Jul 2019 23:39:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxce4g7ua9/XaKcrSwKmVeNCNz18bbUbsprDR887ZxcFLKD9RPbtAEDGxryG9t4HYVMLKAR X-Received: by 2002:a17:90a:37e9:: with SMTP id v96mr6676194pjb.10.1564641570918; Wed, 31 Jul 2019 23:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564641570; cv=none; d=google.com; s=arc-20160816; b=DfqniVVMokoLGnBjOWiS/uXVgSOl+PfbDGECqkmhfiyNbeycwsdrT4xaZwOn3PU0oT BOnItEYIt+Ju6Tqs8SHsQLluK5l15BX3vZGBeSkLlJFPU9T2iQcN1bHPaKqWbBzT0BhF lPtCkNTJghskU/oM6VCZvLbXP6RAk3UkU9iCOaGgdHTSRKvSA3XhimwqSHOEUnDJkHox EcbBA92ifOBn+vwYgsNdaJquh4TypRSWZe2guFXXYsX9xvLmw5YvOXS31PsYuP4BUc5v tbIObKXhWR3LZKuouXzDmZ2+sBxVU3nkghmRKKcEl4cQCD3coRI/H5afm5R1DBT2SYiQ PV8g== 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=X9ZQbHrGzFtjEODVBGVi3gOgXCwBSDCk0xPlVmAv39c=; b=a6QcjIgMo9hy+XeK4nWhc9S7+6/7kcFlqRp+80EYrgxRaSQsvSnGXxsk8GMcI67FMa lR4Fk+J2fHtiAKXJsL0HP5i6Cmk+AHjxp32Fm56O3KTvONc/i6Mt9SFc6Gr9O+C9X5ZO kcPfdck7M6rI+aoyphoO/IS9HkLueitu5Gkk3MaM1F1aBbHpX7SXzFPlAwZSsmn2dxj5 AtaQqw3XdKA5z3Y09y8swPapPJSE63CpF0jnm4UGPsnuJrawek9pcoz9W6JSvQIO2ir/ 4UdJMchf8y9ouybJydq5H9D2phFQT4FlkteM64u6B7SxQbswqR1NrgyKNo97fQ7qycIH SMbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Irrr23fM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b20si34070396pls.24.2019.07.31.23.39.16; Wed, 31 Jul 2019 23:39:30 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Irrr23fM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730016AbfHAGhC (ORCPT + 99 others); Thu, 1 Aug 2019 02:37:02 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35249 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728884AbfHAGg6 (ORCPT ); Thu, 1 Aug 2019 02:36:58 -0400 Received: by mail-lj1-f194.google.com with SMTP id x25so68265353ljh.2; Wed, 31 Jul 2019 23:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X9ZQbHrGzFtjEODVBGVi3gOgXCwBSDCk0xPlVmAv39c=; b=Irrr23fMhTG6al2CUIKvRGL5QX0PhtRLcRnbsblPKgEqQOxD8SJoM0uIVm3vH8a07y sps88K+hpaaGuRLYTRBAE727L6SCNxZHl98YcWCGE2nZBlrKZCFqhQYnFQa3O46eY8lL /DxLFOpm2FTCNqNU9snTg9au+8PRn02r+vYkQ8uFHGAqYPis0WcrgzH4YS4+SDBfQEoV 7J4/uuOHdv42lZlMfAfkuWhF1r6IfctmUnPGE8QearmzNB3FBL+pVJ7DCBccFWYyYHn4 IiZQ1ElUjB3Z1LOP9E4MADCJzJeaPW8qtNE1bgA7zqga8L4CC95+lpKWT1r1gq4voAWE 6ZVQ== 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=X9ZQbHrGzFtjEODVBGVi3gOgXCwBSDCk0xPlVmAv39c=; b=NpDDvPthk+qRlJgv2aSBvSwFoTO3c1qKXNcXYY2a/Rzt2TJ4I1jz6fmSE5Mjp8P0ka SXHSo4Kpq9FnPNsGHlNN3TpCzamab0TwyV9YOAZM64/TLO0wJnS8vgVteBVjXAKYOb79 u+97/EVjZTXpY02Hg2nZLQ9QXuref1mzVVUqNpQlO2BUabyqH+5QKKiNVCKFQnN/fZOJ m94CE75ahEa6bxUJ5IRPu9T+GXlvnF9rHxZjO3K8gqmXzNQny9GyA6VK3QQViPs0UmB7 PwKBTOQBRPiWPklaOq3V6GqKERTo4g/3zXer3Wd5873cuI/o+EaClUdKU6Weh5CPE4t8 MepQ== X-Gm-Message-State: APjAAAXPkYLGoxx6gr40BSrgGJqjVoBcEwth09DSpRZcfYol95v3h7PF A/nCj3wpuLFFcssUuaDe0ocvHGh5zns7eSFKSvM= X-Received: by 2002:a2e:b1c1:: with SMTP id e1mr31450663lja.228.1564641416029; Wed, 31 Jul 2019 23:36:56 -0700 (PDT) MIME-Version: 1.0 References: <1564489420-677-1-git-send-email-sumit.garg@linaro.org> In-Reply-To: From: Janne Karhunen Date: Thu, 1 Aug 2019 09:36:44 +0300 Message-ID: Subject: Re: [RFC v2 0/6] Introduce TEE based Trusted Keys support To: Sumit Garg Cc: keyrings@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, Jens Wiklander , Jonathan Corbet , dhowells@redhat.com, jejb@linux.ibm.com, Jarkko Sakkinen , Mimi Zohar , James Morris , "Serge E. Hallyn" , Casey Schaufler , Ard Biesheuvel , Daniel Thompson , Linux Doc Mailing List , Linux Kernel Mailing List , linux-arm-kernel , "tee-dev @ lists . linaro . 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 Wed, Jul 31, 2019 at 5:23 PM Sumit Garg wrote: > > I guess my wording was wrong, tried to say that physical TEEs in the > > wild vary massively hardware wise. Generalizing these things is rough. > > > > There are already well defined GlobalPlatform Standards to generalize > the TEE interface. One of them is GlobalPlatform TEE Client API [1] > which provides the basis for this TEE interface. I'm aware of it - I have implemented a large part of the GP TEE APIs earlier (primarily the crypto functions). Does the TEE you work with actually support GP properly? Can I take a look at the code? Normally the TEE implementations are well-guarded secrets and the state of the implementation is quite random. In many cases keeping things secret is fine from my point of view, given that it is a RoT after all. The secrecy is the core business here. So, this is why I opted the userspace 'secret' route - no secrets in the kernel, but it's fine for the userspace. Umh was a logical fit to implement it. -- Janne