[QUESTION] arm64: mmap to the hugetlbfs with hugepagesize=512M got SIGILL
Yongqiang Liu
liuyongqiang13 at huawei.com
Tue Jun 1 18:33:54 PDT 2021
在 2021/6/1 23:00, David Hildenbrand 写道:
> On 01.06.21 11:34, Yongqiang Liu wrote:
>> Hi Catalin and Will,
>>
>> when we mmap the addr NULL with MAP_FIXED flag to the hugetlbfs, system
>> will return NULL successfully.
>>
>> My question is: Why mmap to file with the hugepagesize=512M we got
>> SIGILL but mmap to the file with hugepagesize=2M we got a success ? Here
>> is my test steps:
>>
>> 1. echo 10 >
>> /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
>>
>> echo 10 >
>> /sys/kernel/mm/hugepages/hugepages-524288kB/nr_hugepages
>
> Which values do you get when you read back these knobs?
>
> 10. I forgot that the selinux should be disabled or mmap return failed
> with error code 13.
Thanks,
Yongqiang Liu
More information about the linux-arm-kernel
mailing list