From: Ingo Molnar <mingo@kernel.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: mingo@elte.hu, tglx@linutronix.de, hpa@zytor.com,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
Juergen Gross <jgross@suse.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND] x86: consider effective protection attributes in W+X check
Date: Tue, 20 Feb 2018 09:10:42 +0100 [thread overview]
Message-ID: <20180220081042.wgriecqneizg3df7@gmail.com> (raw)
In-Reply-To: <5A8BDF3602000078001A96CD@prv-mh.provo.novell.com>
* Jan Beulich <JBeulich@suse.com> wrote:
> Using just the leaf page table entry flags would cause a false warning
> in case _PAGE_RW is clear or _PAGE_NX is set in a higher level entry.
Under what circumstances did you see false positive warnings?
> Hand through both the current entry's flags as well as the accumulated
> effective value (the latter as pgprotval_t instead of pgprot_t, as it's
> not an actual entry's value).
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> Reviewed-by: Juergen Gross <jgross@suse.com>
> ---
> arch/x86/mm/dump_pagetables.c | 92 ++++++++++++++++++++++++++----------------
> 1 file changed, 57 insertions(+), 35 deletions(-)
Could you please rebase this on top of latest tip:master, which changed
arch/x86/mm/dump_pagetables.c non-trivially due the dynamic 5 level paging
changes?
Thanks,
Ingo
next prev parent reply other threads:[~2018-02-20 8:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-20 7:41 Jan Beulich
2018-02-20 8:10 ` Ingo Molnar [this message]
2018-02-20 8:22 ` Jan Beulich
2018-02-20 8:32 ` Ingo Molnar
2018-02-20 8:37 ` Ingo Molnar
2018-02-20 8:43 ` Jan Beulich
2018-02-20 10:17 ` Ingo Molnar
2018-02-20 11:09 ` Jan Beulich
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=20180220081042.wgriecqneizg3df7@gmail.com \
--to=mingo@kernel.org \
--cc=JBeulich@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=hpa@zytor.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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
Powered by JetHome