From: Yongqiang Liu <liuyongqiang13@huawei.com>
To: David Hildenbrand <david@redhat.com>, <catalin.marinas@arm.com>,
<will.deacon@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>, <linux-mm@kvack.org>,
<wangkefeng.wang@huawei.com>
Subject: Re: [QUESTION] arm64: mmap to the hugetlbfs with hugepagesize=512M got SIGILL
Date: Wed, 2 Jun 2021 09:33:54 +0800 [thread overview]
Message-ID: <cf6f2a84-2f6e-af4d-1a14-9727da2e4c7b@huawei.com> (raw)
In-Reply-To: <c83e557c-636a-6d78-b34a-0fd8aeaf9899@redhat.com>
在 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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2021-06-02 1:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 9:34 [QUESTION] arm64: mmap to the hugetlbfs with hugepagesize=512M got SIGILL Yongqiang Liu
2021-06-01 15:00 ` David Hildenbrand
2021-06-02 1:33 ` Yongqiang Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cf6f2a84-2f6e-af4d-1a14-9727da2e4c7b@huawei.com \
--to=liuyongqiang13@huawei.com \
--cc=catalin.marinas@arm.com \
--cc=david@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mm@kvack.org \
--cc=wangkefeng.wang@huawei.com \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).