Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1207512imm; Fri, 8 Jun 2018 11:51:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGEpUdHqvQWHX7h5Namp4aAc7e2NNQ+rZHA3X4BaLTpRlsyA/58QiKNjSCZE3fIYLBxUPL X-Received: by 2002:a62:a0c:: with SMTP id s12-v6mr7243367pfi.33.1528483875520; Fri, 08 Jun 2018 11:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528483875; cv=none; d=google.com; s=arc-20160816; b=lPw/U9dJPZvJoM/28gF+fLYlLNAgUz0xhkmNzaBDZkdSKErpipvPNbCAVW0gzy+0sx +fn9+t5oxtQASkJvL/vRYJl4ONjC4BsbFv0XviDPijRlTvnA1zXLgdDdIP138D12+H5I 9yFLu8OGbf8T6w4afW+BHloN/uQO1dhpZhcbtvfdKKtup7oTSOp5mYdfyoZLAVzCNAbr 8KY1kqe722lZdYezw0WQgtvB0+GnqRJAQEvkYWRXfWvOjh0NxTDf93x+MGjtRBT//EIi oblgPdkZRlg7dBEth/YEFfVzOSgWLJvGfdqVDhWZSLKob/D2tfEXkBZ3dFTSfiAf4nQG m7aA== 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 :arc-authentication-results; bh=8sFGNxbiSOAGpgfQbBpxQGfHiy/fgOQFwMUyArTWTyM=; b=TBYH91qw4N0RTk3wew0hQyWzf72a36F1DczIqj8SAVoyEDZMH/MeomkB0ZjPmZN7pg ghap5dnykvhL5lmz4MuawFIR4vWyD0bX/gaqWHxavl0jBozlzxB7HYp3AK+UzckdfN7o r/GX6tchEgWz0vh0iolgTfBf2sH+RvEmMq9x0yX5bzqtiZVWzi4v1jgKX8jiyYTyRcxE btbh3ySjrupPmEYr4EVX39qs2uHEooxVc5w/9XGRwiIo60HW1pxw1oRl8LOVlLBqoa4H hXVlczzPvLZo1tSfGD62De9FRfl51B0hNOvkQwQ5t6tj8uQyidwWeryyTHtJ1AcwMv9x eGFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UVXSB4/6; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12-v6si57344096plp.225.2018.06.08.11.51.01; Fri, 08 Jun 2018 11:51:15 -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=@kernel.org header.s=default header.b=UVXSB4/6; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753061AbeFHSuc (ORCPT + 99 others); Fri, 8 Jun 2018 14:50:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:56474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752653AbeFHSu3 (ORCPT ); Fri, 8 Jun 2018 14:50:29 -0400 Received: from mail-wr0-f171.google.com (mail-wr0-f171.google.com [209.85.128.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC7D4208AF for ; Fri, 8 Jun 2018 18:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528483829; bh=l6Rri0Zj7MpUVqwPnqMfWr256Ssc6j6ehlN5TZdVNZU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UVXSB4/6WoNB5318eUuOVPDmgepehmzuffVBESNP39QRwwkI3AD5yxewku5u7oIFI SzBnGLFabyAi1nhL8jE5Sfea9gpnYS1Wx9Cc/pVMRD4CrXsr/X2GCLOpRwRFNgm1fH OTLGwbFOeRCuaVOCdh3ciadACgc31gyU5JqHleRc= Received: by mail-wr0-f171.google.com with SMTP id e18-v6so6085503wrs.5 for ; Fri, 08 Jun 2018 11:50:28 -0700 (PDT) X-Gm-Message-State: APt69E0If3ovECxh29xapo1B1BTbAso4e6m75K0h4lHl7nZWF1XH93Ty Ficc5RfzmGBtpkQb/+JinJTKnKOxeT5VnIsIr9jUQg== X-Received: by 2002:adf:b445:: with SMTP id v5-v6mr5732327wrd.67.1528483827349; Fri, 08 Jun 2018 11:50:27 -0700 (PDT) MIME-Version: 1.0 References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180608171216.26521-14-jarkko.sakkinen@linux.intel.com> In-Reply-To: <20180608171216.26521-14-jarkko.sakkinen@linux.intel.com> From: Andy Lutomirski Date: Fri, 8 Jun 2018 11:50:14 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave To: Jarkko Sakkinen Cc: X86 ML , Platform Driver , nhorman@redhat.com, npmccallum@redhat.com, LKML , Ingo Molnar , intel-sgx-kernel-dev@lists.01.org, "H. Peter Anvin" , Darren Hart , Thomas Gleixner , andy@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, Jun 8, 2018 at 10:32 AM Jarkko Sakkinen wrote: > > The Launch Enclave (LE) generates cryptographic launch tokens for user > enclaves. A launch token is used by EINIT to check whether the enclave > is authorized to launch or not. By having its own launch enclave, Linux > has full control of the enclave launch process. > > LE is wrapped into a user space proxy program that reads enclave > signatures outputs launch tokens. The kernel-side glue code is > implemented by using the user space helper framework. The IPC between > the LE proxy program and kernel is handled with an anonymous inode. > > The commit also adds enclave signing tool that is used by kbuild to > measure and sign the launch enclave. CONFIG_INTEL_SGX_SIGNING_KEY points > to a PEM-file for the 3072-bit RSA key that is used as the LE public key > pair. The default location is: It might be nice to use the infrastructure that Alexei added for bpfilter (the umh_blob stuff) here, which is slated for merging in this merge window. --Andy