Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1451703

[PATCH v3 0/2] tpm: add optional max xfer size check

From Andrey Pronin <apronin@chromium.org>
Newsgroups linux.kernel
Subject [PATCH v3 0/2] tpm: add optional max xfer size check
Date 2016-07-28 06:00 +0200
Message-ID <rZKEh-AR-1@gated-at.bofh.it> (permalink)
References <rV0gF-qZ-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patchset introduces an optional maximum transfer size that can
be specified by a tpm driver. Setting the max_xfer_size helps to catch
the cases when burstcnt is incorrectly reported by the device (e.g. >64
for spi - happened in practice) and gracefully handle such situations.

v2: removed unnecessary accessors in tpm_tis_core.h, fixed style

v3: simplified logic: simply cap the burstcnt at max_xfer_size, don't
attempt to re-request from tpm.

Andrey Pronin (2):
  tpm_tis_core: add optional max xfer size check
  tpm_tis_spi: add max xfer size

 drivers/char/tpm/tpm_tis_core.c | 9 ++++++++-
 drivers/char/tpm/tpm_tis_core.h | 1 +
 drivers/char/tpm/tpm_tis_spi.c  | 1 +
 3 files changed, 10 insertions(+), 1 deletion(-)

-- 
2.6.6

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/2] tpm: add optional max xfer size check Andrey Pronin <apronin@chromium.org> - 2016-07-28 06:00 +0200
  [PATCH v3 1/2] tpm_tis_core: add optional max xfer size check Andrey Pronin <apronin@chromium.org> - 2016-07-28 06:00 +0200
    Re: [PATCH v3 1/2] tpm_tis_core: add optional max xfer size check Dmitry Torokhov <dtor@chromium.org> - 2016-07-29 01:00 +0200
    Re: [PATCH v3 1/2] tpm_tis_core: add optional max xfer size check Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-08-09 10:20 +0200
  [PATCH v3 2/2] tpm_tis_spi: add max xfer size Andrey Pronin <apronin@chromium.org> - 2016-07-28 06:00 +0200
    Re: [PATCH v3 2/2] tpm_tis_spi: add max xfer size Dmitry Torokhov <dtor@chromium.org> - 2016-07-29 01:00 +0200
      Re: [PATCH v3 2/2] tpm_tis_spi: add max xfer size Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-08-09 10:20 +0200

csiph-web