Pull EFI fixes from Ard Biesheuvel: - avoid a potential crash on the efi_subsys_init() error path - use more appropriate error code for runtime services calls issued after a crash in the firmware occurred - avoid READ_ONCE() for accessing firmware tables that may appear misaligned in memory * tag 'efi-fixes-for-v6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: efi: tpm: Avoid READ_ONCE() for accessing the event log efi: rt-wrapper: Add missing include efi: fix userspace infinite retry read efivars after EFI runtime services page fault efi: fix NULL-deref in init error path
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -198,8 +198,8 @@ static __always_inline int __calc_tpm2_event_size(struct tcg_pcr_event2_head *ev · 197 unmodified lines | ||
| 198 | 198 | * The loop below will unmap these fields if the log is larger than |
| 199 | 199 | * one page, so save them here for reference: |
| 200 | 200 | */ |
| 201 | − count = READ_ONCE(event->count); | |
| 202 | − event_type = READ_ONCE(event->event_type); | |
| 201 | + count = event->count; | |
| 202 | + event_type = event->event_type; | |
| 203 | 203 | |
| 204 | 204 | /* Verify that it's the log header */ |
| 205 | 205 | if (event_header->pcr_idx != 0 || |