Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3189243ybh; Mon, 5 Aug 2019 13:45:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0qrom61VJIvCCawvkBee5b4X6fLLHDtx0x9jISO2OnkGIHzBVUiuThq07mHKcKjeMNKp/ X-Received: by 2002:a62:7994:: with SMTP id u142mr75909047pfc.39.1565037951669; Mon, 05 Aug 2019 13:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565037951; cv=none; d=google.com; s=arc-20160816; b=Dn596CAQDCni1w10mweRxbqx5nQmNIXk+lP/8yuoyWA8XBurgCmYH9pgKhhYp6FQ/T Q6qa41+3TNmbPQEOpaVXPSk2gvMq2Y6P8leeBYMkXAKWEwozeMYsvoMlcGVXYT2+ZqE5 niZc1V1S8CSR12TLyk6weN6tKQixlJxj7a2hSzCQ/bl9twVbE9V+Hnmje6PjFJ4FM3RZ e9g1RDlKzcIT7pidkL9zZJs0pJ8SsA1GpUMYrX7pWYmK/wiRiNsRXQGL3pbwdV3qXA8Z qRxDsJuUMhBHhGKxZOg5ehzWI+P54grsfnTQ09t7rRjYpr1gJtCAPv4u3GDs1CM5Zv5A a0rA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wsUDVBChK+M8fcBKPuwuj27qHFq9S3uCU5NzsNKzh4M=; b=SRX4uhyj46QvrKzy2i0b1DGefv3vooxcAOzT/5yzVhBGlQ4V8upV6W8ytPzzGW5kml BX5sioBtOBflQD3mLaxGKdPAty7Pqy+lQxKt5ekincFvb+DFtJ1Nr91faTWZfTUSKa1k MVV7C5tv7Ceqfnwf3sWR8XWVFeprw/CEbgSHZMjoIGdqNpfOBGH6EDzjhLqI8C3KCHlU 8LXS4dEZjYAui90olP0OQ3o7f2GHiDu2tMJZvsluLebCEnQTOPBBhxo5ybjInFlI1H+0 bbrA0Y3b3ETgcje4Rhc8m5bwpUa4bEqlTxsctRy2lpb5AzkQxS1RsJcVa3Yrmm1YaC7V L0Iw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a32si13262824pje.7.2019.08.05.13.45.36; Mon, 05 Aug 2019 13:45:51 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730713AbfHEUoK (ORCPT + 99 others); Mon, 5 Aug 2019 16:44:10 -0400 Received: from mga01.intel.com ([192.55.52.88]:61059 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730690AbfHEUoI (ORCPT ); Mon, 5 Aug 2019 16:44:08 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Aug 2019 13:44:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,350,1559545200"; d="scan'208";a="373200445" Received: from alison-desk.jf.intel.com ([10.54.74.53]) by fmsmga005.fm.intel.com with ESMTP; 05 Aug 2019 13:44:06 -0700 Date: Mon, 5 Aug 2019 13:44:53 -0700 From: Alison Schofield To: Ben Boeckel Cc: "Kirill A. Shutemov" , Andrew Morton , x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , David Howells , Kees Cook , Dave Hansen , Kai Huang , Jacob Pan , linux-mm@kvack.org, kvm@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, "Kirill A . Shutemov" Subject: Re: [PATCHv2 57/59] x86/mktme: Document the MKTME Key Service API Message-ID: <20190805204453.GB7592@alison-desk.jf.intel.com> References: <20190731150813.26289-1-kirill.shutemov@linux.intel.com> <20190731150813.26289-58-kirill.shutemov@linux.intel.com> <20190805115837.GB31656@rotor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190805115837.GB31656@rotor> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 07:58:37AM -0400, Ben Boeckel wrote: > On Wed, Jul 31, 2019 at 18:08:11 +0300, Kirill A. Shutemov wrote: > > + key = add_key("mktme", "name", "no-encrypt", strlen(options_CPU), > > + KEY_SPEC_THREAD_KEYRING); > > Should this be `type=no-encrypt` here? Also, seems like copy/paste from > the `type=cpu` case for the `strlen` call. > > --Ben Yes. Fixed up as follows: Add a "no-encrypt' type key:: char \*options_NOENCRYPT = "type=no-encrypt"; key = add_key("mktme", "name", options_NOENCRYPT, strlen(options_NOENCRYPT), KEY_SPEC_THREAD_KEYRING); Thanks for the review, Alison