Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1956804ybh; Fri, 24 Jul 2020 00:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA4tpLTzgutvzs0dW61LSWLwvg7kS3g1bY1q6PPPXe5ZmKMfinXueN31/KL95R0JSKM6Hp X-Received: by 2002:a50:f384:: with SMTP id g4mr7492253edm.205.1595575065149; Fri, 24 Jul 2020 00:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595575065; cv=none; d=google.com; s=arc-20160816; b=Gun3KPp3okDeP+v9t7Ep7P6ltL28pM+QsgoXR5nP8wG9ciO/8oe9xASEkbyX00zNtI I4xHHQ6w7PugPlmboiZn2oliKiBwGzOSzWAw27MHtRzxYQypZcwgTm7VvRyHHI+EjqgJ k4mlNFFkV6mHyjU/XdAt369O8mkgzikCgBuAJgjZLTLnX2NlP3be3BiJgtzYuKDISgDs XqIj8A6GGX0h3XD97g1tEEYDdd2nQ5elFKbZXhp/1POx21JVG8CVGkBnULsoIv8Mi9mk Qq2ubz0QIxHABUiPawDTaSprU8qBW3fS5ffmLGPs41K5b7tonkP/NSjd5VKuHj3Dxn+k Cv2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=GBIgXG+kk8wBiQztIbMlmCAR0DrJwRAKuzUd65WHWrA=; b=zVGY0+tZ+ouYOI4/94bx71ddWGgZP4626VW3Tbf4ErgfOOMTLMeoIuFgtt/iFSQwYB te20MhK0oDxCk8/hi0KG0irxWDa7jOXzw1z2cLefTT22MHNsqtIji1XEWiw1YINCWHez dV4WfhB4UffjKf9VOLbWEY7SvCaWdOEbYWcPkT+M9FgrpdJzuqq+9JN9elF8xAfhzVMS PqG6TvY0VdUaN91/VQ9o5C88tzVbho8tTn0FVD/NEaH+queGHnuF8nqyvsFAEjqr+gjA okYyMGmOl3nlEEE4RYZttDh0XtDOvq+19IN5zwl4H7n0FQ9oDFvSWIIhrjlzJa0kkbNi AmmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q18si15128edr.440.2020.07.24.00.17.22; Fri, 24 Jul 2020 00:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727060AbgGXHQl (ORCPT + 99 others); Fri, 24 Jul 2020 03:16:41 -0400 Received: from mga17.intel.com ([192.55.52.151]:8331 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbgGXHQj (ORCPT ); Fri, 24 Jul 2020 03:16:39 -0400 IronPort-SDR: JBw9HJ8w3SQr9VKOkFXMvcTmcq8VvzfJiPxaz9V3mBzXhXPuGO7iSQDeQEdllvlMI/qd+rthLi HeEZWFTy6Big== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="130744636" X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="130744636" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2020 00:16:38 -0700 IronPort-SDR: j2KK6kP0J+fDiKxJ95jlu/hDyyYP9v6JH6cA4bkpmW8feH7gE8IfsA4vWqkJ+k32bHItnhQeVf JDPgRgmGlMEw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="320922247" Received: from cbuerkle-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.36.184]) by fmsmga002.fm.intel.com with ESMTP; 24 Jul 2020 00:16:36 -0700 Date: Fri, 24 Jul 2020 10:16:34 +0300 From: Jarkko Sakkinen To: David Howells Cc: torvalds@linux-foundation.org, Wei Yongjun , keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] keys: asymmetric: fix error return code in software_key_query() Message-ID: <20200724071634.GA1872662@linux.intel.com> References: <20200723013223.GA45081@linux.intel.com> <159485211858.2340757.9890754969922775496.stgit@warthog.procyon.org.uk> <1269137.1595490145@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1269137.1595490145@warthog.procyon.org.uk> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 08:42:25AM +0100, David Howells wrote: > Jarkko Sakkinen wrote: > > > Why f1774cb8956a lacked any possible testing? It extends ABI anyway. > > > > I think it is a kind of change that would require more screening before > > getting applied. > > Yeah. It went in via a round-about route. I left off development of it when > the tpm stuff I wrote broke because the tpm2 stuff went in upstream. I then > handed the patches off to Denis who did the tpm support, but I never got my > stuff finished enough to work out how to do the testsuite (since it would > involve using a tpm). However, since I did the PKCS#8 testing module as well, > I guess I don't need that to at least test the API. I'll look at using that > to add some tests. Any suggestions as to how to do testing via the tpm? > > David The unfortunate thing is that I was not involved with asym_tpm.c review process in any possible way, which means that at the moment I lack both: 1. Knowledge of crypto/asymmetric_keys. 2. How asym_tpm.c is implemented. I only became aware of asym_tpm.c's existence last Sep [*]. I'll put to my backlog to try TPM asymmetric keys (earliest when I'm back from vacation 08/10). [*] https://lore.kernel.org/linux-integrity/20190926171601.30404-1-jarkko.sakkinen@linux.intel.com/ /Jarkko