Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1672537
| From | Matt Fleming <matt@codeblueprint.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v7 19/36] x86/mm: Add support to access boot related data in the clear |
| Date | 2017-06-22 13:10 +0200 |
| Message-ID | <tV89P-3RQ-5@gated-at.bofh.it> (permalink) |
| References | <tTjsJ-5VA-5@gated-at.bofh.it> <tUy6m-4Vv-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 16 Jun, at 01:53:26PM, Tom Lendacky wrote: > Boot data (such as EFI related data) is not encrypted when the system is > booted because UEFI/BIOS does not run with SME active. In order to access > this data properly it needs to be mapped decrypted. > > Update early_memremap() to provide an arch specific routine to modify the > pagetable protection attributes before they are applied to the new > mapping. This is used to remove the encryption mask for boot related data. > > Update memremap() to provide an arch specific routine to determine if RAM > remapping is allowed. RAM remapping will cause an encrypted mapping to be > generated. By preventing RAM remapping, ioremap_cache() will be used > instead, which will provide a decrypted mapping of the boot related data. > > Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> > --- > arch/x86/include/asm/io.h | 5 + > arch/x86/mm/ioremap.c | 179 +++++++++++++++++++++++++++++++++++++++++++++ > include/linux/io.h | 2 + > kernel/memremap.c | 20 ++++- > mm/early_ioremap.c | 18 ++++- > 5 files changed, 217 insertions(+), 7 deletions(-) Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v7 19/36] x86/mm: Add support to access boot related data in the clear Matt Fleming <matt@codeblueprint.co.uk> - 2017-06-22 13:10 +0200
csiph-web