diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-20 10:36:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-20 10:36:52 -0700 |
commit | 056ad121c26db1cfc8253222e2297fb7b7577fe8 (patch) | |
tree | 803bb45495247af78dd8be3306cc51ed4974af3f /include | |
parent | 583dbad34098fd2891dcc850744e7c80063dd8a4 (diff) | |
parent | 4f74d72aa7067e75af92fbab077e6d7d0210be66 (diff) | |
download | linux-stable-056ad121c26db1cfc8253222e2297fb7b7577fe8.tar.gz linux-stable-056ad121c26db1cfc8253222e2297fb7b7577fe8.tar.bz2 linux-stable-056ad121c26db1cfc8253222e2297fb7b7577fe8.zip |
Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull EFI fixes from Thomas Gleixner:
- Use explicitely sized type for the romimage pointer in the 32bit EFI
protocol struct so a 64bit kernel does not expand it to 64bit. Ditto
for the 64bit struct to avoid the reverse issue on 32bit kernels.
- Handle randomized tex offset correctly in the ARM64 EFI stub to avoid
unaligned data resulting in stack corruption and other hard to
diagnose wreckage.
* 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
efi/libstub/arm64: Handle randomized TEXT_OFFSET
efi: Avoid potential crashes, fix the 'struct efi_pci_io_protocol_32' definition for mixed mode
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/efi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index f1b7d68ac460..3016d8c456bc 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -395,8 +395,8 @@ typedef struct { u32 attributes; u32 get_bar_attributes; u32 set_bar_attributes; - uint64_t romsize; - void *romimage; + u64 romsize; + u32 romimage; } efi_pci_io_protocol_32; typedef struct { @@ -415,8 +415,8 @@ typedef struct { u64 attributes; u64 get_bar_attributes; u64 set_bar_attributes; - uint64_t romsize; - void *romimage; + u64 romsize; + u64 romimage; } efi_pci_io_protocol_64; typedef struct { |