forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commit79832f0


Ard Biesheuvel
Ingo Molnar
efi/libstub/tpm: Initialize pointer variables to zero for mixed mode
As reported by Jeremy Cline, running the new TPM libstub code in mixedmode (i.e., 64-bit kernel on 32-bit UEFI) results in hangs when invokingthe TCG2 protocol, or when accessing the log_tbl pool allocation.The reason turns out to be that in both cases, the 64-bit pointervariables are not fully initialized by the 32-bit EFI code, and sowe should take care to zero initialize these variables beforehand,or we'll end up dereferencing bogus pointers.Reported-by: Jeremy Cline <jeremy@jcline.org>Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>Cc: Linus Torvalds <torvalds@linux-foundation.org>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: hdegoede@redhat.comCc: jarkko.sakkinen@linux.intel.comCc: javierm@redhat.comCc: linux-efi@vger.kernel.orgCc: tweek@google.comLink:http://lkml.kernel.org/r/20180313140922.17266-2-ard.biesheuvel@linaro.orgSigned-off-by: Ingo Molnar <mingo@kernel.org>1 parentfc6eabb commit79832f0
1 file changed
+2
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
| 75 | + | |
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
|
0 commit comments
Comments
(0)