LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dave Hansen <dave.hansen@linux.intel.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Fengguang Wu <fengguang.wu@intel.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Linus Torvalds <torvalds@linux-foundation.org>,
Kees Cook <keescook@chromium.org>,
Serge Hallyn <serge@hallyn.com>,
James Morris <james.l.morris@oracle.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
lkp@01.org
Subject: Re: [do_execve] attempted to set unsupported pgprot
Date: Wed, 18 Apr 2018 13:33:55 -0700 [thread overview]
Message-ID: <361242c4-261c-1ddb-b948-c71f672779a8@linux.intel.com> (raw)
In-Reply-To: <20180418125916.a8be1fac1ac017f41a10f0fb@linux-foundation.org>
On 04/18/2018 12:59 PM, Andrew Morton wrote:
>> [ 12.348499] ------------[ cut here ]------------
>> [ 12.349193] attempted to set unsupported pgprot: 8000000000000025 bits: 8000000000000000 supported: 7fffffffffffffff
>> [ 12.350792] WARNING: CPU: 0 PID: 1 at arch/x86/include/asm/pgtable.h:540 handle_mm_fault+0xfc1/0xfe0:
>> check_pgprot at arch/x86/include/asm/pgtable.h:535
>> (inlined by) pfn_pte at arch/x86/include/asm/pgtable.h:549
>> (inlined by) do_anonymous_page at mm/memory.c:3169
>> (inlined by) handle_pte_fault at mm/memory.c:3961
>> (inlined by) __handle_mm_fault at mm/memory.c:4087
>> (inlined by) handle_mm_fault at mm/memory.c:4124
>> [ 12.352294] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.17.0-rc1 #172
>> [ 12.353357] EIP: handle_mm_fault+0xfc1/0xfe0:
>> check_pgprot at arch/x86/include/asm/pgtable.h:535
>> (inlined by) pfn_pte at arch/x86/include/asm/pgtable.h:549
>> (inlined by) do_anonymous_page at mm/memory.c:3169
>> (inlined by) handle_pte_fault at mm/memory.c:3961
>> (inlined by) __handle_mm_fault at mm/memory.c:4087
>> (inlined by) handle_mm_fault at mm/memory.c:4124
> Dave, fb43d6cb91ef57 ("x86/mm: Do not auto-massage page protections")
> looks like a culprit?
This looks like NX somehow getting set on a system where it is
unsupported. Any idea what kind of VMA it is? We probably should have
kept NX from getting set in vm_page_prot to begin with.
> entry = mk_pte(page, vma->vm_page_prot);
> if (vma->vm_flags & VM_WRITE)
> entry = pte_mkwrite(pte_mkdirty(entry));
>
next prev parent reply other threads:[~2018-04-18 20:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-18 13:59 Fengguang Wu
2018-04-18 19:59 ` Andrew Morton
2018-04-18 20:33 ` Dave Hansen [this message]
2018-04-19 21:26 ` Dave Hansen
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=361242c4-261c-1ddb-b948-c71f672779a8@linux.intel.com \
--to=dave.hansen@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=fengguang.wu@intel.com \
--cc=james.l.morris@oracle.com \
--cc=keescook@chromium.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lkp@01.org \
--cc=serge@hallyn.com \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
--subject='Re: [do_execve] attempted to set unsupported pgprot' \
/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
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).