archive mirror
 help / color / mirror / Atom feed
From: "Nasim, Kam" <>
To: Thiebaud Weksteen <>
Cc: ""
Subject: Re: TPM2.0: No binary_bios_measurements file in securityFS
Date: Tue, 12 Sep 2017 14:17:21 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1.1: Type: text/plain, Size: 2816 bytes --]

Thanks Thiebaud. I am going to apply your patch and give it a go.

So just to confirm, did /sys/kernel/security/tpm0/binary_bios_measurements never worked for TPM 2.0? I am using a grub bootloader btw (not UEFI or any other form of Secure / Trusted boot)

From: Thiebaud Weksteen []
Sent: Tuesday, September 12, 2017 2:41 AM
To: Nasim, Kam
Subject: Re: [tpmdd-devel] TPM2.0: No binary_bios_measurements file in securityFS

Hi Kam,

Access to the binary event log for TPM 2.0 is not fully supported. I've recently sent a patch to implement it:


On Tue, Sep 12, 2017 at 12:44 AM, Nasim, Kam <<>> wrote:
Hi folks,

I am building my TPM 2.0 driver as Kernel modules (tpm.ko, tpm_tis_core.ko and tpm_tis.ko).

I noticed that while my /sys/kernel/security directory is created and mounted to securityFS, it is empty.

Looking at tpm_bios_log_setup() in tpm1_event.log, I see that this is being done during chip registration:

if (chip->flags & TPM_CHIP_FLAG_TPM2)
        chip->bin_log_seqops.seqops =
        chip->bin_log_seqops.seqops =

    chip->bios_dir[cnt] =
                   0440, chip->bios_dir[0],
                   (void *)&chip->bin_log_seqops,
    if (IS_ERR(chip->bios_dir[cnt]))
        goto err;

My TPM modules are loaded properly and I can interact with TPM using userspace TSS2 applications:

$ sudo lsmod | grep tpm
tpm_crb                 6458  0
tpm_tis                 5950  0
tpm_tis_core           10054  1 tpm_tis
tpm                    48093  3 tpm_crb,tpm_tis,tpm_tis_core

2017-09-08T19:39:16.239 controller-0 kernel: warning [    0.000000] ACPI: TPM2 000000007b7c8000 00034 (v03 INTEL   S2600WT 00000002 INTL 01000013)
2017-09-08T19:39:16.252 controller-0 kernel: info [    5.457568] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x1A, rev-id 16)

How and when would this file be created? For that matter I don’t even have a /sys/devices/pnp0/<pnp#>/pcrs file present
(I am on CentOS 7.3)



Check out the vibrant tech community on one of the world's most
engaging tech sites,!
tpmdd-devel mailing list<>

[-- Attachment #1.2: Type: text/html, Size: 12661 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

Check out the vibrant tech community on one of the world's most
engaging tech sites,!

[-- Attachment #3: Type: text/plain, Size: 192 bytes --]

tpmdd-devel mailing list

  parent reply	other threads:[~2017-09-12 14:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 22:44 TPM2.0: No binary_bios_measurements file in securityFS Nasim, Kam
     [not found] ` <CA352AD04C14CE4985F6AEB6AB8C130E3EDB8751-/>
2017-09-12  6:40   ` Thiebaud Weksteen via tpmdd-devel
     [not found]     ` <>
2017-09-12 14:17       ` Nasim, Kam [this message]
2017-09-13 12:03   ` Nayna Jain
     [not found]     ` <>
2017-09-13 15:01       ` Nasim, Kam

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:

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

  git send-email \ \ \ \ \

* 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).