Patch "efi/tpm: Pass correct address to memblock_reserve" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    efi/tpm: Pass correct address to memblock_reserve

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     efi-tpm-pass-correct-address-to-memblock_reserve.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4f598499437e5261b00c0c7234fa9665a9f60438
Author: Jerry Snitselaar <jsnitsel@xxxxxxxxxx>
Date:   Sat Oct 22 08:23:52 2022 -0700

    efi/tpm: Pass correct address to memblock_reserve
    
    [ Upstream commit f4cd18c5b2000df0c382f6530eeca9141ea41faf ]
    
    memblock_reserve() expects a physical address, but the address being
    passed for the TPM final events log is what was returned from
    early_memremap(). This results in something like the following:
    
    [    0.000000] memblock_reserve: [0xffffffffff2c0000-0xffffffffff2c00e4] efi_tpm_eventlog_init+0x324/0x370
    
    Pass the address from efi like what is done for the TPM events log.
    
    Fixes: c46f3405692d ("tpm: Reserve the TPM final events table")
    Cc: Matthew Garrett <mjg59@xxxxxxxxxx>
    Cc: Jarkko Sakkinen <jarkko@xxxxxxxxxx>
    Cc: Bartosz Szczepanek <bsz@xxxxxxxxxxxx>
    Cc: Ard Biesheuvel <ardb@xxxxxxxxxx>
    Signed-off-by: Jerry Snitselaar <jsnitsel@xxxxxxxxxx>
    Acked-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>
    Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/firmware/efi/tpm.c b/drivers/firmware/efi/tpm.c
index 8f665678e9e3..e8d69bd548f3 100644
--- a/drivers/firmware/efi/tpm.c
+++ b/drivers/firmware/efi/tpm.c
@@ -97,7 +97,7 @@ int __init efi_tpm_eventlog_init(void)
 		goto out_calc;
 	}
 
-	memblock_reserve((unsigned long)final_tbl,
+	memblock_reserve(efi.tpm_final_log,
 			 tbl_size + sizeof(*final_tbl));
 	efi_tpm_final_log_size = tbl_size;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux