From: Thomas Gleixner <tglx@linutronix.de>
To: Jike Song <albcamus@gmail.com>
Cc: luto@kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86/mm/pti: remove dead logic during user pagetable population
Date: Sun, 7 Jan 2018 10:48:21 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.20.1801071047210.1734@nanos> (raw)
In-Reply-To: <CANE52Kh9aCNoW-QTaqPZ-MrwKAn_gJ=wFbhMxAN6ZFVLci5ZVQ@mail.gmail.com>
On Sun, 7 Jan 2018, Jike Song wrote:
> On Sun, Jan 7, 2018 at 3:33 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Sun, 7 Jan 2018, Jike Song wrote:
> >
> > Care to explain why you think this is not needed?
> >
>
> Hi Thomas,
>
> Look at one of the original code snippets:
>
> 162 if (pgd_none(*pgd)) {
> 163 unsigned long new_p4d_page = __get_free_page(gfp);
> 164 if (!new_p4d_page)
> 165 return NULL;
> 166
> 167 if (pgd_none(*pgd)) {
> 168 set_pgd(pgd, __pgd(_KERNPG_TABLE |
> __pa(new_p4d_page)));
> 169 new_p4d_page = 0;
> 170 }
> 171 if (new_p4d_page)
> 172 free_page(new_p4d_page);
> 173 }
>
> Correct me if I'm too dumb to see the rationale here, but to me there
> can't be any difference between
> two pgd_none(*pgd) of L162 and L167, so it is always false in L171.
Right, but this kind of explanation wants to be in the changelog. Empty
changelogs for this kind of change are just not acceptable.
Thanks,
tglx
next prev parent reply other threads:[~2018-01-07 9:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-06 17:50 Jike Song
2018-01-06 19:33 ` Thomas Gleixner
2018-01-07 3:00 ` Jike Song
2018-01-07 9:48 ` Thomas Gleixner [this message]
2018-01-07 10:35 ` Jike Song
2018-01-06 20:03 ` Willy Tarreau
2018-01-07 3:05 ` Jike Song
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=alpine.DEB.2.20.1801071047210.1734@nanos \
--to=tglx@linutronix.de \
--cc=albcamus@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
/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
all inboxes | Powered by JetHome®