Messages in this thread | | | Date | Mon, 02 Feb 2015 08:42:19 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH 0/6] randomize kernel physical address and virtual address separately |
| |
On 01/20/2015 07:37 PM, Baoquan He wrote: > > Leftover problem: > hpa want to see the physical randomization can cover the whole physical memory. I > checked code and found it's hard to do. Because in arch/x86/boot/compressed/head_64.S > an identity mapping of 4G is built and then kaslr and decompressing are done. The #PF > handler solution which he suggested is only available after jump into decompressed > kernel, namely in arch/x86/kernel/head_64.S. I didn't think of a way to do the whole > memory covering for physical address randomization, any suggestion or idea? >
Basically, it means adding an IDT and #PF handler to the decompression code. Not really all that complex.
-hpa
| |