Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1702797 > unrolled thread

Re: [POC] Get acpi table to limit memory scope chosen by KASLR to home SB when "movable_node" is specified

Started byDou Liyang <douly.fnst@cn.fujitsu.com>
First post2017-08-03 11:00 +0200
Last post2017-08-03 11:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [POC] Get acpi table to limit memory scope chosen by KASLR to  home SB when "movable_node" is specified Dou Liyang <douly.fnst@cn.fujitsu.com> - 2017-08-03 11:00 +0200
    Re: [POC] Get acpi table to limit memory scope chosen by KASLR to  home SB when "movable_node" is specified Chao Fan <fanc.fnst@cn.fujitsu.com> - 2017-08-03 11:10 +0200

#1702797 — Re: [POC] Get acpi table to limit memory scope chosen by KASLR to home SB when "movable_node" is specified

FromDou Liyang <douly.fnst@cn.fujitsu.com>
Date2017-08-03 11:00 +0200
SubjectRe: [POC] Get acpi table to limit memory scope chosen by KASLR to home SB when "movable_node" is specified
Message-ID<uak93-5ZO-3@gated-at.bofh.it>
Cc ACPI maintainers and mail list

At 08/03/2017 04:51 PM, Chao Fan wrote:
> Hi all,
>
> Here is an issue about movable_node and KASLR.
> Currently, KASLR works well with "mem=", by which we can limit the scope of
> memory chosen by KASLR. But if we use "movable_node" independently without
> "mem=", we don't know the scope of memory in the home SB, which will cause
> the memory of hotplug SB may be chosen by KASLR.
> To solve this problem, I want to do this job:
> If "movable_node" is specified, try to get the acpi table and find the scope
> of memory in home SB, then set "mem_limit".
>
> The order of getting table is:
> boot_params
>     \-systab
>         \-efi tables
>              \-rsdp
>                  \-rsdt or xsdt
>                       \-acpi root table list
>                             \-acpi srat mem affinity
>
> I am not sure if it's OK for community.
> If there are any problems, please let me know.
> Any comments will be welcome.
>
> Thanks,
> Chao Fan
>
>
>

[toc] | [next] | [standalone]


#1702807

FromChao Fan <fanc.fnst@cn.fujitsu.com>
Date2017-08-03 11:10 +0200
Message-ID<uakiK-6iI-23@gated-at.bofh.it>
In reply to#1702797
On Thu, Aug 03, 2017 at 04:59:26PM +0800, Dou Liyang wrote:
>Cc ACPI maintainers and mail list

So many thanks.

>
>At 08/03/2017 04:51 PM, Chao Fan wrote:
>> Hi all,
>> 
>> Here is an issue about movable_node and KASLR.
>> Currently, KASLR works well with "mem=", by which we can limit the scope of
>> memory chosen by KASLR. But if we use "movable_node" independently without
>> "mem=", we don't know the scope of memory in the home SB, which will cause
>> the memory of hotplug SB may be chosen by KASLR.
>> To solve this problem, I want to do this job:
>> If "movable_node" is specified, try to get the acpi table and find the scope
>> of memory in home SB, then set "mem_limit".
>> 
>> The order of getting table is:
>> boot_params
>>     \-systab
>>         \-efi tables
>>              \-rsdp
>>                  \-rsdt or xsdt
>>                       \-acpi root table list
>>                             \-acpi srat mem affinity
>> 

I am not sure if it's good to do this job in this period,
so I want to get the feedback of community.

Thanks,
Chao Fan

>> I am not sure if it's OK for community.
>> If there are any problems, please let me know.
>> Any comments will be welcome.
>> 
>> Thanks,
>> Chao Fan
>> 
>> 
>> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web