summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2020-06-01 08:25:43 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2020-06-01 08:25:43 +0200
commit7815da0f0f4e50daabdc6f5894e668fba341fc9b (patch)
tree94361d06b456407bd9453ae75a6b4c6aeff4c33c
parent999d35c7241c0c0be816d30f604d374bb1a0db08 (diff)
parent8754bcde0a147dde61f4536c62059a26c6e6e42c (diff)
downloadkernel-7815da0f0f4e50daabdc6f5894e668fba341fc9b.tar.gz
kernel-7815da0f0f4e50daabdc6f5894e668fba341fc9b.tar.xz
kernel-7815da0f0f4e50daabdc6f5894e668fba341fc9b.zip
Merge remote-tracking branch 'origin/f32' into f32-user-thl-vanilla-fedora
-rw-r--r--kernel.spec6
-rw-r--r--tpm-check-event-log-version-before-reading-final-eve.patch81
2 files changed, 3 insertions, 84 deletions
diff --git a/kernel.spec b/kernel.spec
index fbcf48591..bb81e429e 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -922,9 +922,6 @@ Patch511: e1000e-bump-up-timeout-to-wait-when-ME-un-configure-ULP-mode.patch
Patch512: drm-dp_mst-Fix-drm_dp_send_dpcd_write-return-code.patch
-#rhbz 1779611
-Patch514: tpm-check-event-log-version-before-reading-final-eve.patch
-
# CVE-2020-12655 rhbz 1832543 1832545
Patch515: 0001-xfs-add-agf-freeblocks-verify-in-xfs_agf_verify.patch
@@ -3042,6 +3039,9 @@ fi
#
#
%changelog
+* Thu May 28 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.6.15-300
+- Linux v5.6.15
+
* Wed May 20 2020 Hans de Goede <hdegoede@redhat.com> - 5.6.14-300
- Fix automatic guest resolution resizing of VirtualBox VMs (rhbz 1789545)
- Fix Sony laptop hang on resume from suspend (rhbz 1830150)
diff --git a/tpm-check-event-log-version-before-reading-final-eve.patch b/tpm-check-event-log-version-before-reading-final-eve.patch
deleted file mode 100644
index 9668c807b..000000000
--- a/tpm-check-event-log-version-before-reading-final-eve.patch
+++ /dev/null
@@ -1,81 +0,0 @@
-From MAILER-DAEMON Thu May 14 17:38:32 2020
-From: Loïc Yhuel <loic.yhuel@gmail.com>
-To: linux-integrity@vger.kernel.org
-Cc: matthewgarrett@google.com, ardb@kernel.org, jarkko.sakkinen@linux.intel.com, javierm@redhat.com, Loïc Yhuel <loic.yhuel@gmail.com>
-Subject: [PATCH] tpm: check event log version before reading final events
-Date: Tue, 12 May 2020 06:01:13 +0200
-Message-Id: <20200512040113.277768-1-loic.yhuel@gmail.com>
-Sender: linux-integrity-owner@vger.kernel.org
-List-ID: <linux-integrity.vger.kernel.org>
-X-Mailing-List: linux-integrity@vger.kernel.org
-MIME-Version: 1.0
-Content-Type: text/plain; charset="utf-8"
-Content-Transfer-Encoding: 8bit
-
-This fixes the boot issues since 5.3 on several Dell models when the TPM
-is enabled. Depending on the exact grub binary, booting the kernel would
-freeze early, or just report an error parsing the final events log.
-
-We get an event log in the SHA-1 format, which doesn't have a
-tcg_efi_specid_event_head in the first event, and there is a final events
-table which doesn't match the crypto agile format.
-__calc_tpm2_event_size reads bad "count" and "efispecid->num_algs", and
-either fails, or loops long enough for the machine to be appear frozen.
-
-So we now only parse the final events table, which is per the spec always
-supposed to be in the crypto agile format, when we got a event log in this
-format.
-
-Fixes: 166a2809d65b2 ("tpm: Don't duplicate events from the final event log in the TCG2 log")
-Fixes: c46f3405692de ("tpm: Reserve the TPM final events table")
-Signed-off-by: Loïc Yhuel <loic.yhuel@gmail.com>
-Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
-Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
-Reviewed-by: Matthew Garrett <mjg59@google.com>
-Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1779611
----
- drivers/firmware/efi/libstub/tpm.c | 5 +++--
- drivers/firmware/efi/tpm.c | 3 ++-
- 2 files changed, 5 insertions(+), 3 deletions(-)
-
-diff --git a/drivers/firmware/efi/libstub/tpm.c b/drivers/firmware/efi/libstub/tpm.c
-index 1d59e103a2e3..e9a684637b70 100644
---- a/drivers/firmware/efi/libstub/tpm.c
-+++ b/drivers/firmware/efi/libstub/tpm.c
-@@ -54,7 +54,7 @@ void efi_retrieve_tpm2_eventlog(void)
- efi_status_t status;
- efi_physical_addr_t log_location = 0, log_last_entry = 0;
- struct linux_efi_tpm_eventlog *log_tbl = NULL;
-- struct efi_tcg2_final_events_table *final_events_table;
-+ struct efi_tcg2_final_events_table *final_events_table = NULL;
- unsigned long first_entry_addr, last_entry_addr;
- size_t log_size, last_entry_size;
- efi_bool_t truncated;
-@@ -127,7 +127,8 @@ void efi_retrieve_tpm2_eventlog(void)
- * Figure out whether any events have already been logged to the
- * final events structure, and if so how much space they take up
- */
-- final_events_table = get_efi_config_table(LINUX_EFI_TPM_FINAL_LOG_GUID);
-+ if (version == EFI_TCG2_EVENT_LOG_FORMAT_TCG_2)
-+ final_events_table = get_efi_config_table(LINUX_EFI_TPM_FINAL_LOG_GUID);
- if (final_events_table && final_events_table->nr_events) {
- struct tcg_pcr_event2_head *header;
- int offset;
-diff --git a/drivers/firmware/efi/tpm.c b/drivers/firmware/efi/tpm.c
-index 55b031d2c989..77e101a395e7 100644
---- a/drivers/firmware/efi/tpm.c
-+++ b/drivers/firmware/efi/tpm.c
-@@ -62,7 +62,8 @@ int __init efi_tpm_eventlog_init(void)
- tbl_size = sizeof(*log_tbl) + log_tbl->size;
- memblock_reserve(efi.tpm_log, tbl_size);
-
-- if (efi.tpm_final_log == EFI_INVALID_TABLE_ADDR)
-+ if (efi.tpm_final_log == EFI_INVALID_TABLE_ADDR ||
-+ log_tbl->version != EFI_TCG2_EVENT_LOG_FORMAT_TCG_2)
- goto out;
-
- final_tbl = early_memremap(efi.tpm_final_log, sizeof(*final_tbl));
---
-2.26.2
-
-