From patchwork Tue Oct 13 02:51:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Sakkinen X-Patchwork-Id: 11834881 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4ECAB109B for ; Tue, 13 Oct 2020 02:52:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37A43208FE for ; Tue, 13 Oct 2020 02:52:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727072AbgJMCwO (ORCPT ); Mon, 12 Oct 2020 22:52:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:60892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727023AbgJMCwO (ORCPT ); Mon, 12 Oct 2020 22:52:14 -0400 Received: from localhost (83-245-197-237.elisa-laajakaista.fi [83.245.197.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D04AA206FB; Tue, 13 Oct 2020 02:52:13 +0000 (UTC) From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: David Howells , Mimi Zohar , James Bottomley , Jarkko Sakkinen Subject: [PATCH v4 0/3] KEYS, trusted: a bunch of bug fixes Date: Tue, 13 Oct 2020 05:51:53 +0300 Message-Id: <20201013025156.111305-1-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org This patch set contains a bunch of disjoint bug fixes. v4: * Do not create stubs for tpm_transmit_cmd(), tpm_try_get_ops() and tpm_put_ops(). https://lore.kernel.org/linux-integrity/20201013023927.GA71954@linux.intel.com/ v3: * Reordered patches a bit, i.e. trivial fixes in the head and the least trivial in the tail. * Added the missing "return -ENODEV;" to tpm_transmit_cmd(), when the kernel is compiled without TPM support. https://lore.kernel.org/linux-integrity/202010110927.zsxMpek2-lkp@intel.com/ v2: * Fix a kernel test bot warning. https://lore.kernel.org/linux-integrity/202010051152.9kxy43LO-lkp@intel.com/ Jarkko Sakkinen (3): KEYS: trusted: Fix incorrect handling of tpm_get_random() KEYS: trusted: Fix migratable=1 failing KEYS: trusted: Reserve TPM for seal and unseal operations drivers/char/tpm/tpm.h | 4 - include/linux/tpm.h | 5 +- security/keys/trusted-keys/trusted_tpm1.c | 94 ++++++++++++++++------- security/keys/trusted-keys/trusted_tpm2.c | 6 +- 4 files changed, 75 insertions(+), 34 deletions(-)