Re: [PATCH v14 5/5] x86/boot/KASLR: Limit KASLR to extracting kernel in immovable memory

2018-12-17 Thread Chao Fan
On Mon, Dec 17, 2018 at 06:43:24PM +0100, Ingo Molnar wrote: > >* Chao Fan wrote: > >> KASLR randomly chooses some positions which may locate in movable >> memory regions. It will break memory hotplug feature and make the >> movable memory chosen by KASLR practically immovable. >> >> The solution

Re: [PATCH v14 5/5] x86/boot/KASLR: Limit KASLR to extracting kernel in immovable memory

2018-12-17 Thread Ingo Molnar
* Chao Fan wrote: > KASLR randomly chooses some positions which may locate in movable > memory regions. It will break memory hotplug feature and make the > movable memory chosen by KASLR practically immovable. > > The solution is to limit KASLR to choose memory regions in immovable > node acco

[PATCH v14 5/5] x86/boot/KASLR: Limit KASLR to extracting kernel in immovable memory

2018-12-14 Thread Chao Fan
KASLR randomly chooses some positions which may locate in movable memory regions. It will break memory hotplug feature and make the movable memory chosen by KASLR practically immovable. The solution is to limit KASLR to choose memory regions in immovable node according to SRAT tables. When CONFIG_