From: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> To: linux-integrity@vger.kernel.org Cc: linux-security-module@vger.kernel.org, Sahil Rihan <srihan@fb.com>, Alexei Starovoitov <ast@fb.com>, Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>, stable@vger.kernel.org, Peter Huewe <peterhuewe@gmx.de>, Jason Gunthorpe <jgg@ziepe.ca>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org (open list) Subject: [PATCH] tpm: allow TCPA log area to be empty Date: Sat, 10 Mar 2018 18:16:37 +0200 [thread overview] Message-ID: <20180310161637.7723-1-jarkko.sakkinen@linux.intel.com> (raw) TCPA log are can be empty when the TPM is disabled. This commit changes the behavior of tpm_read_log_acpi() to return successfully in this case. Cc: stable@vger.kernel.org Fixes: 55a82ab3181b ("[PATCH] tpm: add bios measurement log") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> --- drivers/char/tpm/tpm_eventlog_acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm_eventlog_acpi.c b/drivers/char/tpm/tpm_eventlog_acpi.c index 66f19e93c216..f5f66dcd6f30 100644 --- a/drivers/char/tpm/tpm_eventlog_acpi.c +++ b/drivers/char/tpm/tpm_eventlog_acpi.c @@ -84,8 +84,8 @@ int tpm_read_log_acpi(struct tpm_chip *chip) break; } if (!len) { - dev_warn(&chip->dev, "%s: TCPA log area empty\n", __func__); - return -EIO; + dev_info(&chip->dev, "TCPA log area is empty\n"); + return 0; } /* malloc EventLog space */ -- 2.15.1
WARNING: multiple messages have this Message-ID (diff)
From: jarkko.sakkinen@linux.intel.com (Jarkko Sakkinen) To: linux-security-module@vger.kernel.org Subject: [PATCH] tpm: allow TCPA log area to be empty Date: Sat, 10 Mar 2018 18:16:37 +0200 [thread overview] Message-ID: <20180310161637.7723-1-jarkko.sakkinen@linux.intel.com> (raw) TCPA log are can be empty when the TPM is disabled. This commit changes the behavior of tpm_read_log_acpi() to return successfully in this case. Cc: stable at vger.kernel.org Fixes: 55a82ab3181b ("[PATCH] tpm: add bios measurement log") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> --- drivers/char/tpm/tpm_eventlog_acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm_eventlog_acpi.c b/drivers/char/tpm/tpm_eventlog_acpi.c index 66f19e93c216..f5f66dcd6f30 100644 --- a/drivers/char/tpm/tpm_eventlog_acpi.c +++ b/drivers/char/tpm/tpm_eventlog_acpi.c @@ -84,8 +84,8 @@ int tpm_read_log_acpi(struct tpm_chip *chip) break; } if (!len) { - dev_warn(&chip->dev, "%s: TCPA log area empty\n", __func__); - return -EIO; + dev_info(&chip->dev, "TCPA log area is empty\n"); + return 0; } /* malloc EventLog space */ -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2018-03-10 16:16 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-03-10 16:16 Jarkko Sakkinen [this message] 2018-03-10 16:16 ` [PATCH] tpm: allow TCPA log area to be empty Jarkko Sakkinen 2018-03-12 11:09 ` Jarkko Sakkinen 2018-03-12 11:09 ` Jarkko Sakkinen 2018-03-12 15:02 ` Jason Gunthorpe 2018-03-12 15:02 ` Jason Gunthorpe 2018-03-16 12:55 ` Jarkko Sakkinen 2018-03-16 12:55 ` Jarkko Sakkinen 2018-03-19 2:13 ` Jason Gunthorpe 2018-03-19 2:13 ` Jason Gunthorpe 2018-03-19 21:24 ` Jarkko Sakkinen 2018-03-19 21:24 ` Jarkko Sakkinen 2018-03-20 22:29 ` Sahil Rihan 2018-03-20 22:29 ` Sahil Rihan 2018-03-22 14:20 ` Jarkko Sakkinen 2018-03-22 14:20 ` Jarkko Sakkinen 2018-03-27 0:07 ` Sahil Rihan 2018-03-27 0:07 ` Sahil Rihan 2018-03-27 8:05 ` Jarkko Sakkinen 2018-03-27 8:05 ` Jarkko Sakkinen 2018-03-27 15:37 ` Sahil Rihan 2018-03-27 15:37 ` Sahil Rihan
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=20180310161637.7723-1-jarkko.sakkinen@linux.intel.com \ --to=jarkko.sakkinen@linux.intel.com \ --cc=arnd@arndb.de \ --cc=ast@fb.com \ --cc=gregkh@linuxfoundation.org \ --cc=jgg@ziepe.ca \ --cc=linux-integrity@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-security-module@vger.kernel.org \ --cc=peterhuewe@gmx.de \ --cc=srihan@fb.com \ --cc=stable@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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.