Re: Kernel Bug/oops during boot (PowerVM LPAR w/vTPM)
flat view
From: Nayna <hidden>
Date: 2019-07-04 03:38:26
Hi Sachin and Michal, On 07/03/2019 05:15 PM, Michal Suchánek wrote:
On Wed, 3 Jul 2019 13:17:16 +0200 Michal Suchánek [off-list ref] wrote:quoted
On Wed, 3 Jul 2019 15:54:59 +0530 Sachin Sant [off-list ref] wrote:quoted
Booting mainline kernel on PowerVM LPAR with vTPM enabled results into a kernel crash. [ 0.365989] BUG: Kernel NULL pointer dereference at 0x00000012...quoted
quoted
[ 0.366085] NIP [c00000000073dd80] tpm1_pcr_extend+0x130/0x230 [ 0.366090] LR [c00000000073dcd0] tpm1_pcr_extend+0x80/0x230...quoted
You need to revert (or fix up) commit 0b6cf6b97b7e ("tpm: pass an array of tpm_extend_digest structures to tpm_pcr_extend()". At least reverting it fixes the issue for me.FTR this is the revert on lkml https://lkml.org/lkml/2019/7/1/423
I have just now posted the fix for this to the mailing list and copied both of you. I would appreciate your testing and confirming that the patch "tpm: fixes uninitialized allocated banks for IBM vtpm driver" addresses this bug. Thanks & Regards, - Nayna