linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Markku Savela <msa@moth.iki.fi>
To: linux-integrity@vger.kernel.org
Subject: Re: IMA fails to see TPM chip (rpi3, linaro optee)
Date: Mon, 18 Feb 2019 12:13:36 +0200	[thread overview]
Message-ID: <b9da5231-10b8-0d88-3d90-edfc6fb7b9de@moth.iki.fi> (raw)
In-Reply-To: <9cd0d399-2b11-779c-f767-660ea61721d9@moth.iki.fi>

On 18/02/2019 11:36, Markku Savela wrote:

>   https://www.spinics.net/lists/linux-integrity/msg01018.html
> 
> e.g., spi is not intialized early enough
> 
> [    4.007959] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
> [    5.240738] tpm_tis_spi spi0.1: 2.0 TPM (device-id 0x1B, rev-id 22)

Oh, and I already have the self test disabled (in above), no effect...


diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c
index 44a3d1623..7e61fc243 100644
--- a/drivers/char/tpm/tpm2-cmd.c
+++ b/drivers/char/tpm/tpm2-cmd.c
@@ -890,7 +890,7 @@ static int tpm2_do_selftest(struct tpm_chip *chip)

         loops = jiffies_to_msecs(duration) / delay_msec;

-       rc = tpm2_start_selftest(chip, true);
+       rc = tpm2_start_selftest(chip, false);
         if (rc)
                 return rc;


  reply	other threads:[~2019-02-18 10:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18  9:36 IMA fails to see TPM chip (rpi3, linaro optee) Markku Savela
2019-02-18 10:13 ` Markku Savela [this message]
2019-02-20  8:14   ` Markku Savela
2019-02-21  9:08     ` Markku Savela
2019-02-21 12:49       ` Mimi Zohar
2019-02-21 13:17         ` Markku Savela
2019-02-21 13:23           ` Markku Savela
2019-02-26  8:12             ` Markku Savela
2019-02-26 12:14               ` Mimi Zohar
2019-02-26 12:38                 ` Ard Biesheuvel
2019-02-26 14:04                   ` Mimi Zohar
2019-02-26 18:09                     ` Jarkko Sakkinen
2019-02-26 19:05                       ` Mimi Zohar
2019-03-07 17:15                 ` James Bottomley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9da5231-10b8-0d88-3d90-edfc6fb7b9de@moth.iki.fi \
    --to=msa@moth.iki.fi \
    --cc=linux-integrity@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).