From patchwork Sat Nov 3 04:08:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Sakkinen X-Patchwork-Id: 10666499 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B776C13BF for ; Sat, 3 Nov 2018 04:08:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86A182AE51 for ; Sat, 3 Nov 2018 04:08:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 736772AE55; Sat, 3 Nov 2018 04:08:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 117072AE43 for ; Sat, 3 Nov 2018 04:08:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbeKCNS3 (ORCPT ); Sat, 3 Nov 2018 09:18:29 -0400 Received: from mga12.intel.com ([192.55.52.136]:53362 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbeKCNS3 (ORCPT ); Sat, 3 Nov 2018 09:18:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Nov 2018 21:08:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,458,1534834800"; d="scan'208";a="88251178" Received: from unknown (HELO localhost) ([10.249.254.143]) by orsmga006.jf.intel.com with ESMTP; 02 Nov 2018 21:08:31 -0700 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: linux-security-module@vger.kernel.org, James Bottomley , Tomas Winkler , Jarkko Sakkinen , Jason Gunthorpe , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 0/6] Detach TPM space code from tpm_transmit() flow Date: Sat, 3 Nov 2018 06:08:14 +0200 Message-Id: <20181103040820.23360-1-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make the changes that are needed to detach TPM space code from tpm_transmit() flow so that we do no longer need nested tpm_transmit() calls. Jarkko Sakkinen (6): tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter tpm: clean up tpm_try_transmit() error handling flow tpm: access command header through struct in tpm_try_transmit() tpm: move tpm_validate_commmand() to tpm2-space.c tpm: encapsulate tpm_dev_transmit() tpm: move TPM space code out of tpm_transmit() drivers/char/tpm/tpm-dev-common.c | 50 ++++++- drivers/char/tpm/tpm-interface.c | 231 +++++++++++------------------- drivers/char/tpm/tpm-sysfs.c | 2 +- drivers/char/tpm/tpm.h | 14 +- drivers/char/tpm/tpm1-cmd.c | 26 +--- drivers/char/tpm/tpm2-cmd.c | 37 ++--- drivers/char/tpm/tpm2-space.c | 58 ++++++-- drivers/char/tpm/tpm_vtpm_proxy.c | 3 +- 8 files changed, 206 insertions(+), 215 deletions(-)