Re: [PATCH V5 2/4] tpm: Reserve the TPM final events table
From: Bartosz Szczepanek
Date: Thu May 02 2019 - 02:46:07 EST
Second patch tries to unmap "mapping" which is not declared. I'm on
top of jjs/master and your TPM_MEMREMAP patches are already there, so
the first patch applied cleanly. Using it, kernel still panicked on
boot:
EFI stub: Booting Linux Kernel...
EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x420f5162]
[ 0.000000] Linux version 5.1.0-rc2+ (root@xxxxxxxxxxxxxxxxxxxxx)
(gcc version 7.3.1 20180712 (Red Hat 7.3.1-6) (GCC)) #78 SMP Wed May 1
01:05:38 EDT 2019
[ 0.000000] earlycon: pl11 at MMIO 0x0000000402020000 (options '115200n8')
[ 0.000000] printk: bootconsole [pl11] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: EFI v2.60 by Cavium Inc.
TX2-FW-Release-7.2-build_08-0-g14f8c5bf8a Apr 15 2019 18:51:41
[ 0.000000] efi: TPMFinalLog=0xed5f0000 SMBIOS=0xfad90000 SMBIOS
3.0=0xed530000 ACPI 2.0=0xeda90000 ESRT=0xfafdb218
MEMATTR=0xf8489018 TPMEventLog=0xedaa9018 MEMRESERVE=0xedaa8018
[ 0.000000] Unhandled fault at 0xffff7dfffe77a018
[ 0.000000] Mem abort info:
[ 0.000000] ESR = 0x96000003
[ 0.000000] Exception class = DABT (current EL), IL = 32 bits
[ 0.000000] SET = 0, FnV = 0
[ 0.000000] EA = 0, S1PTW = 0
[ 0.000000] Data abort info:
[ 0.000000] ISV = 0, ISS = 0x00000003
[ 0.000000] CM = 0, WnR = 0
[ 0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp = (____ptrval____)
[ 0.000000] [ffff7dfffe77a018] pgd=0000000081b12003
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] kernel BUG at arch/arm64/mm/fault.c:189!
[ 0.000000] Internal error: Oops - BUG: 0 [#1] SMP
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.1.0-rc2+ #78
[ 0.000000] pstate: 60400089 (nZCv daIf +PAN -UAO)
[ 0.000000] pc : show_pte+0x1d0/0x1f0
[ 0.000000] lr : show_pte+0x88/0x1f0
[ 0.000000] sp : ffff000011533b30
[ 0.000000] x29: ffff000011533b30 x28: ffff0000115473c0
[ 0.000000] x27: ffff000011542500 x26: ffff7dfffe73a010
[ 0.000000] x25: 0000000000000018 x24: 0000000000000025
[ 0.000000] x23: 00000000000000fb x22: ffff0000117fc000
[ 0.000000] x21: ffff000010f32000 x20: ffffffffffffffff
[ 0.000000] x19: ffff7dfffe77a018 x18: ffffffffffffffff
[ 0.000000] x17: 0000000000000000 x16: 0000000000000000
[ 0.000000] x15: ffff00001153d708 x14: ffff00001172f420
[ 0.000000] x13: ffff00001172f069 x12: ffff000011568000
[ 0.000000] x11: ffff000011533800 x10: ffff000011533800
[ 0.000000] x9 : ffff00001153ef58 x8 : 303030303030303d
[ 0.000000] x7 : 646770205d383130 x6 : ffff00001172e7ff
[ 0.000000] x5 : 0000000000000000 x4 : 0000000000000000
[ 0.000000] x3 : 0000000000000000 x2 : 0000000000000000
[ 0.000000] x1 : 0000000081b12000 x0 : 0000000000000ff8
[ 0.000000] Process swapper (pid: 0, stack limit = 0x(____ptrval____))
[ 0.000000] Call trace:
[ 0.000000] show_pte+0x1d0/0x1f0
[ 0.000000] do_mem_abort+0xa8/0xb0
[ 0.000000] el1_da+0x20/0xc4
[ 0.000000] efi_tpm_eventlog_init+0xe8/0x268
[ 0.000000] efi_config_parse_tables+0x180/0x29c
[ 0.000000] uefi_init+0x1d0/0x22c
[ 0.000000] efi_init+0x90/0x180
[ 0.000000] setup_arch+0x1f4/0x5fc
[ 0.000000] start_kernel+0x90/0x51c
[ 0.000000] Code: 910d6000 94030b20 17ffffe6 d503201f (d4210000)
[ 0.000000] random: get_random_bytes called from
print_oops_end_marker+0x54/0x70 with crng_init=0
[ 0.000000] ---[ end trace 0000000000000000 ]---
[ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill
the idle task! ]---