diff options
author | Ard Biesheuvel <[email protected]> | 2018-05-04 07:59:58 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-05-14 08:56:29 +0200 |
commit | 0b3225ab9407f557a8e20f23f37aa7236c10a9b1 (patch) | |
tree | 22d16961238b4d1afd1b8813229ce001956889f6 /tools/perf/util/trace-event-scripting.c | |
parent | 67b8d5c7081221efa252e111cd52532ec6d4266f (diff) |
efi: Avoid potential crashes, fix the 'struct efi_pci_io_protocol_32' definition for mixed mode
Mixed mode allows a kernel built for x86_64 to interact with 32-bit
EFI firmware, but requires us to define all struct definitions carefully
when it comes to pointer sizes.
'struct efi_pci_io_protocol_32' currently uses a 'void *' for the
'romimage' field, which will be interpreted as a 64-bit field
on such kernels, potentially resulting in bogus memory references
and subsequent crashes.
Tested-by: Hans de Goede <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions