Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10351667imu; Sun, 30 Dec 2018 20:21:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN4rTxmO4GYh7K50cTWcvu2Pf5Aa/jpmdp+NzLodC0WhIlZFxQnZ8oLEMupLXyus7W59k2t5 X-Received: by 2002:a65:5c02:: with SMTP id u2mr6337225pgr.13.1546230063654; Sun, 30 Dec 2018 20:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546230063; cv=none; d=google.com; s=arc-20160816; b=oFb3GBN0VCg7yCuQCaou7MFxqrwNU0CH9BAUPQ8PzUwnRV+B8AqtbYIYTfagjO7u9e kPM52occ+D0aVM9vw80Hu5MpdqFxIJsWxyxpjG86G0M0R9mnk5v+ZkaYKua8910iNzw4 0bIqUojubvYHgFHQqwVvSivq4G3YQioD3r5x6TsxtNrctClf2aP8h4NyHvYQQKV6RL6q ezmb3rqs+hqXJY/OX2CV64+gmkKcdXQwxb6DJ8XKRospdeP1G6UDxI2yvr4dvtdWQpeH Cgnlld04tXjSw5dEw7ceZe0BbF+n1ys2SFe+SCLb3m1sa/iQ6k/wTsxgJ/2oIQqAIZ0y KQgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=NBjlx97vzLIOSnvOruP/e3OrP/nFN0fyFp9M5+k4wkU=; b=rlkz4odbVUsJdBl15r5pMvuXWS+p2JGkMkWr3UzqojO3oajUmWYgNE199nMtcz7Q2n FeSWEX2V2u7P55yuqt1pu/yAgBs2S9W/lPkkeH6ekGcVqKbBlaPCcGyyU1bSrUDQ/LjP TBglpsEiA8jXjJHAkxjem/xGD1lePAVd8DyDX7FmdUmeMusUT6cVHmLTZLdk8GCXzkeK DPVzSYYBHr69QtYlSDhoNwATa5lRESqxJO91cZ5jgs5Ylc0vQuDEj9SCEmfXAeXg2+D1 f5WXJLG38WVt4I21wpWHdAfNI/fplQE4XP/vsHiOyGxao4qTOdGy7jtS76CLMYlXTba4 pecQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si5614911pgh.560.2018.12.30.20.20.47; Sun, 30 Dec 2018 20:21:03 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbeLaESk (ORCPT + 99 others); Sun, 30 Dec 2018 23:18:40 -0500 Received: from namei.org ([65.99.196.166]:53804 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbeLaESj (ORCPT ); Sun, 30 Dec 2018 23:18:39 -0500 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id wBV4IchJ001884; Mon, 31 Dec 2018 04:18:38 GMT Date: Mon, 31 Dec 2018 15:18:38 +1100 (AEDT) From: James Morris To: Linus Torvalds cc: linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [GIT PULL] security: TPM changes for v4.21 Message-ID: User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From Jarkko: " * Support for partial reads of /dev/tpm0. * Clean up for TPM 1.x code: move the commands to tpm1-cmd.c and make everything to use the same data structure for building TPM commands i.e. struct tpm_buf. " The following changes since commit 8bd8ea195f6d135a8d85201116314eb5237ad7e7: Merge tag 'v4.20-rc7' into next-general (2018-12-17 11:24:28 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-tpm for you to fetch changes up to 0db51ef26e87845d1748c363702585e2f0a06266: Merge tag 'tpmdd-next-20181217' of git://git.infradead.org/users/jjs/linux-tpmdd into next-tpm (2018-12-17 11:31:58 -0800) ---------------------------------------------------------------- James Morris (1): Merge tag 'tpmdd-next-20181217' of git://git.infradead.org/users/jjs/linux-tpmdd into next-tpm Tadeusz Struk (1): tpm: add support for partial reads Tomas Winkler (24): tpm: tpm_i2c_nuvoton: use correct command duration for TPM 2.x tpm2: add new tpm2 commands according to TCG 1.36 tpm: sort objects in the Makefile tpm: factor out tpm 1.x duration calculation to tpm1-cmd.c tpm: add tpm_calc_ordinal_duration() wrapper tpm: factor out tpm_get_timeouts() tpm: move tpm1_pcr_extend to tpm1-cmd.c tpm: move tpm_getcap to tpm1-cmd.c tpm: factor out tpm1_get_random into tpm1-cmd.c tpm: move tpm 1.x selftest code from tpm-interface.c tpm1-cmd.c tpm: factor out tpm 1.x pm suspend flow into tpm1-cmd.c tpm: factor out tpm_startup function tpm: add tpm_auto_startup() into tpm-interface.c tpm: tpm-interface.c drop unused macros tpm: tpm-space.c remove unneeded semicolon tpm: tpm1: rewrite tpm1_get_random() using tpm_buf structure tpm1: implement tpm1_pcr_read_dev() using tpm_buf structure tpm1: rename tpm1_pcr_read_dev to tpm1_pcr_read() tpm1: reimplement SAVESTATE using tpm_buf tpm1: reimplement tpm1_continue_selftest() using tpm_buf tpm: use u32 instead of int for PCR index tpm: tpm_try_transmit() refactor error flow. tpm: fix kdoc for tpm2_flush_context_cmd() tpm: tpm_ibmvtpm: fix kdoc warnings drivers/char/tpm/Makefile | 16 +- drivers/char/tpm/st33zp24/st33zp24.c | 2 +- drivers/char/tpm/tpm-chip.c | 11 +- drivers/char/tpm/tpm-dev-common.c | 52 ++- drivers/char/tpm/tpm-dev.h | 5 +- drivers/char/tpm/tpm-interface.c | 832 +++-------------------------------- drivers/char/tpm/tpm-sysfs.c | 52 +-- drivers/char/tpm/tpm.h | 97 ++-- drivers/char/tpm/tpm1-cmd.c | 781 ++++++++++++++++++++++++++++++++ drivers/char/tpm/tpm2-cmd.c | 308 +++++++------ drivers/char/tpm/tpm2-space.c | 2 +- drivers/char/tpm/tpm_i2c_nuvoton.c | 11 +- drivers/char/tpm/tpm_ibmvtpm.c | 6 +- drivers/char/tpm/tpm_tis_core.c | 10 +- include/linux/tpm.h | 11 +- security/integrity/ima/ima_crypto.c | 5 +- 16 files changed, 1133 insertions(+), 1068 deletions(-) create mode 100644 drivers/char/tpm/tpm1-cmd.c