public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jarkko Sakkinen" <jarkko@kernel.org>
To: "James Bottomley" <James.Bottomley@HansenPartnership.com>,
	"Jiri Slaby" <jirislaby@kernel.org>,
	"Linus Torvalds" <torvalds@linux-foundation.org>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Cc: "Peter Hüwe" <PeterHuewe@gmx.de>,
	"Jason Gunthorpe" <jgg@ziepe.ca>,
	linux-integrity@vger.kernel.org,
	"Ard Biesheuvel" <ardb@kernel.org>,
	"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>
Subject: Re: TPM/EFI issue [Was: Linux 6.12]
Date: Sat, 14 Dec 2024 05:54:26 +0200	[thread overview]
Message-ID: <D6B4BRNN9S4U.IJ3IU91D6YRB@kernel.org> (raw)
In-Reply-To: <878beebf9064abb7911c015d894192077f17ef0b.camel@HansenPartnership.com>

On Tue Dec 10, 2024 at 3:04 PM EET, James Bottomley wrote:
> On Tue, 2024-12-10 at 07:13 +0100, Jiri Slaby wrote:
> [...]
> > Perhaps, you can give a hint why those happen exclusively with 6.12+?
>
> For which one: the ramdisk size not being modulo 4 or the unseal
> getting a PCR changed error?  For the former I don't have much of an
> idea, it would seem to be a dracut (or whatever initrd builder you use)
> issue; the kernel doesn't care about the ramdisk size.  For the latter,
> I would suspect something is delaying IMA measurements such that
> they're still going on when you're trying to unseal.  The error you're
> getting occurs if any PCR changes, not just the ones the policy is
> locked to (thanks TCG).  We have had syzbot reports of processes
> getting stuck in measurement that have been identified as exfat
> related:
>
> https://syzkaller.appspot.com/bug?extid=1de5a37cb85a2d536330
>
> But it could be a more generic filesystem issue that measurement is
> slowing but not enough to trigger the stuck process warning.
>
> In particular systemd parallelizes a lot of stuff, so if it's doing
> something that causes IMA measurement in parallel with the unseal and
> this parallel process finished before unseal on an earlier kernel, that
> would explain it.  You could probably verify this by adding more
> dependencies to the tpm target, but I'm not really well versed in
> systemd.

Yeah, I agree. This is too much looking for needle from the haystack.
A bit more evidence for kernel issue is needed than just kernel version
change in order to make progress.

> Regards,
>
> James

BR, Jarkko

      reply	other threads:[~2024-12-14  3:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHk-=wgtGkHshfvaAe_O2ntnFBH3EprNk1juieLmjcF2HBwBgQ@mail.gmail.com>
2024-11-27  6:46 ` TPM/EFI issue [Was: Linux 6.12] Jiri Slaby
2024-11-27 16:24   ` James Bottomley
2024-11-28  7:20     ` Jiri Slaby
2024-11-28 16:13       ` James Bottomley
2024-11-29  6:36         ` Jiri Slaby
2024-11-29 16:03           ` James Bottomley
2024-11-29 21:08             ` James Bottomley
2024-12-02  7:56               ` Jiri Slaby
2024-11-30  7:52             ` Jiri Slaby
2024-11-30  2:49   ` Jarkko Sakkinen
2024-11-30  2:52     ` Jarkko Sakkinen
2024-12-02  7:52     ` Jiri Slaby
2024-12-07 12:16       ` Jarkko Sakkinen
2024-12-09  6:43         ` Jiri Slaby
2024-12-09 12:54         ` Jarkko Sakkinen
2024-12-10  6:13           ` Jiri Slaby
2024-12-10 13:04             ` James Bottomley
2024-12-14  3:54               ` Jarkko Sakkinen [this message]

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=D6B4BRNN9S4U.IJ3IU91D6YRB@kernel.org \
    --to=jarkko@kernel.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=PeterHuewe@gmx.de \
    --cc=ardb@kernel.org \
    --cc=jgg@ziepe.ca \
    --cc=jirislaby@kernel.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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