diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2020-01-13 18:22:37 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-01-20 08:13:01 +0100 |
commit | d9e3d2c4f103200d87f2c243a84c1fd3b3bfea8c (patch) | |
tree | 6cca34c1758374f07c855490b34d9e126f3734b7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 75fbef0a8b6b4bb19b9a91b5214f846c2dc5139e (diff) |
efi/x86: Don't map the entire kernel text RW for mixed mode
The mixed mode thunking routine requires a part of it to be
mapped 1:1, and for this reason, we currently map the entire
kernel .text read/write in the EFI page tables, which is bad.
In fact, the kernel_map_pages_in_pgd() invocation that installs
this mapping is entirely redundant, since all of DRAM is already
1:1 mapped read/write in the EFI page tables when we reach this
point, which means that .rodata is mapped read-write as well.
So let's remap both .text and .rodata read-only in the EFI
page tables.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200113172245.27925-6-ardb@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions