From: Morten Linderud <morten@linderud.pw>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Peter Huewe <peterhuewe@gmx.de>, Jason Gunthorpe <jgg@ziepe.ca>,
Stefan Berger <stefanb@linux.ibm.com>,
linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org,
Oleksandr Natalenko <oleksandr@natalenko.name>
Subject: Re: [PATCH] tpm/eventlog: Don't abort tpm_read_log on faulty ACPI config
Date: Wed, 5 Oct 2022 11:31:28 +0200 [thread overview]
Message-ID: <20221005093128.nsudft5yl32xj2gg@framework> (raw)
In-Reply-To: <Yzy2STXGSBmSLhmA@kernel.org>
On Wed, Oct 05, 2022 at 01:40:09AM +0300, Jarkko Sakkinen wrote:
> On Mon, Sep 20, 2021 at 10:34:47PM +0200, Morten Linderud wrote:
> > Some vendors report faulty values in the acpi TPM2 table. This causes
>
> s/acpi/ACPI/
>
> > the function to abort with EIO and essentially short circuits the
>
> s/the function/tpm_read_log()/
>
> > tpm_read_log function as we never even attempt to read the EFI
> > configuration table for a log.
>
> >
> > This changes the condition to only look for a positive return value,
> > else hands over the eventlog discovery to the EFI configuration table
> > which should hopefully work better.
>
> Please, write in imperative ("Change...").
>
> Also exlicitly state how are you changing the check for
> tpm_read_log_acpi() in tpm_read_log().
>
> You could *even* have a snippet how the checks change
> here for clarity.
>
> > It's unclear to me if there is a better solution to this then just
> > failing. However, I do not see any clear reason why we can't properly
> > fallback to the EFI configuration table.
>
> This paragraph should not be part of the commit message.
>
> Rest of the commit message made sense can you add also fixes tag
> as this is clearly a bug fix?
>
> Also, please remove the two spurious diff's from the commit that
> are not relevant for a stable bug fix (pr_warn() and comment
> removal).
Yo,
This is the v1 of the patch which you reviewed a year ago.
https://marc.info/?l=linux-integrity&m=163225066613340&w=2
V2 mostly fixed the commit message, but there where some more pointers. I'm
happy to submit a V3 if we can agree on all the details.
V2 review is here:
https://marc.info/?l=linux-integrity&m=165475008823837&w=2
--
Morten Linderud
PGP: 9C02FF419FECBE16
next prev parent reply other threads:[~2022-10-05 9:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-20 20:34 [PATCH] tpm/eventlog: Don't abort tpm_read_log on faulty ACPI config Morten Linderud
2021-09-21 18:58 ` Jarkko Sakkinen
2021-09-21 19:27 ` Morten Linderud
2022-10-04 22:40 ` Jarkko Sakkinen
2022-10-05 9:31 ` Morten Linderud [this message]
2022-10-05 21:07 ` Jarkko Sakkinen
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=20221005093128.nsudft5yl32xj2gg@framework \
--to=morten@linderud.pw \
--cc=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleksandr@natalenko.name \
--cc=peterhuewe@gmx.de \
--cc=stefanb@linux.ibm.com \
/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).