Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-04 Thread Chao Fan
On Mon, Sep 04, 2017 at 04:39:14PM +0800, Baoquan He wrote: >On 09/04/17 at 04:17pm, Dou Liyang wrote: >> With "movable_node=1024M" option in cmdline, KASLR will can't access >> the node3 memory. > >So you have extended the movable_node option from no value specified to >adding a limit value, then

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-04 Thread Dou Liyang
Hi Baoquan, At 09/04/2017 04:39 PM, Baoquan He wrote: On 09/04/17 at 04:17pm, Dou Liyang wrote: With "movable_node=1024M" option in cmdline, KASLR will can't access the node3 memory. So you have extended the movable_node option from no value specified to adding a limit value, then why don't y

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-04 Thread Baoquan He
On 09/04/17 at 04:17pm, Dou Liyang wrote: > With "movable_node=1024M" option in cmdline, KASLR will can't access > the node3 memory. So you have extended the movable_node option from no value specified to adding a limit value, then why don't you go one step further to extend it as movable_node=xxx

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-04 Thread Dou Liyang
Hi Rafael, Baoquan, and Chao, At 09/04/2017 10:26 AM, Baoquan He wrote: On 09/04/17 at 12:55am, Rafael J. Wysocki wrote: On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: KASLR should choose the memory region of immovable node to extract kernel. So get ACPI SRAT table and store the

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Chao Fan
On Mon, Sep 04, 2017 at 10:26:19AM +0800, Baoquan He wrote: >On 09/04/17 at 12:55am, Rafael J. Wysocki wrote: >> On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: >> > KASLR should choose the memory region of immovable node to extract kernel. >> > So get ACPI SRAT table and store the mem

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Baoquan He
On 09/04/17 at 12:55am, Rafael J. Wysocki wrote: > On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: > > KASLR should choose the memory region of immovable node to extract kernel. > > So get ACPI SRAT table and store the memory region of movable node which > > kaslr shold avoid. > > Ple

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Chao Fan
On Mon, Sep 04, 2017 at 12:55:00AM +0200, Rafael J. Wysocki wrote: >On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: >> KASLR should choose the memory region of immovable node to extract kernel. >> So get ACPI SRAT table and store the memory region of movable node which >> kaslr shold a

Re: [PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Rafael J. Wysocki
On Sunday, September 3, 2017 4:31:23 PM CEST Chao Fan wrote: > KASLR should choose the memory region of immovable node to extract kernel. > So get ACPI SRAT table and store the memory region of movable node which > kaslr shold avoid. Please elaborate. This is far too little information on what pr

[PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Chao Fan
KASLR should choose the memory region of immovable node to extract kernel. So get ACPI SRAT table and store the memory region of movable node which kaslr shold avoid. Signed-off-by: Chao Fan --- v2: Add the support for bios --- arch/x86/boot/compressed/kaslr.c | 346 +