[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tpm: Skip loopback image measurement
From: |
Daniel Kiper |
Subject: |
Re: [PATCH] tpm: Skip loopback image measurement |
Date: |
Thu, 3 Oct 2024 17:11:22 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Thu, Oct 03, 2024 at 03:23:22PM +0800, Michael Chang via Grub-devel wrote:
> The loopback image is configured to function as a disk by being mapped
> as a block device. Instead of measuring the entire block device, we
> should focus on tracking the individual files accessed from it. For
> example, we do not directly measure block devices like disk hd0, but the
> files opened from it.
>
> This method is important to avoid running out of memory, since loopback
> images can be very large. Trying to read and measure the whole image at
> once could cause out of memory errors and disrupt the boot process.
>
> Signed-Off-by: Michael Chang <mchang@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel