[PATCH v8 2/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-08-04 Thread Baoquan He
Currently KASLR will parse all e820 entries of RAM type and add all candidate position into slots array. Then we will choose one slot randomly as the new position which kernel will be decompressed into and run at. On system with EFI enabled, e820 memory regions are coming from EFI memory regions

[PATCH v8 2/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-08-04 Thread Baoquan He
Currently KASLR will parse all e820 entries of RAM type and add all candidate position into slots array. Then we will choose one slot randomly as the new position which kernel will be decompressed into and run at. On system with EFI enabled, e820 memory regions are coming from EFI memory regions