diff options
| author | Kirill A. Shutemov <[email protected]> | 2018-06-25 12:08:52 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-06-27 07:52:52 +0000 |
| commit | cfe19577047e74cdac5826adbdc2337d8437f8fb (patch) | |
| tree | 0af3b1c1ceea7bf3af1073bbd21978f36fc28adc /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | selftests/x86/sigreturn: Do minor cleanups (diff) | |
| download | kernel-cfe19577047e74cdac5826adbdc2337d8437f8fb.tar.gz kernel-cfe19577047e74cdac5826adbdc2337d8437f8fb.zip | |
x86/efi: Fix efi_call_phys_epilog() with CONFIG_X86_5LEVEL=y
Open-coded page table entry checks don't work correctly when we fold the
page table level at runtime.
pgd_present() on 4-level paging machine always returns true, but
open-coded version of the check may return false-negative result and
we silently skip the rest of the loop body in efi_call_phys_epilog().
Replace open-coded checks with proper helpers.
Signed-off-by: Kirill A. Shutemov <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Baoquan He <[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] # v4.12+
Fixes: 94133e46a0f5 ("x86/efi: Correct EFI identity mapping under 'efi=old_map' when KASLR is enabled")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions
