Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFxGpX_W_B8aiV7dWFj5=wckTSiQ4nzVx-moonO5t3e6Lw@mail.gmail.com>
Date: Mon, 20 Aug 2018 16:38:31 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Dave Hansen <dave.hansen@...el.com>
Cc: David Woodhouse <dwmw2@...radead.org>, Tycho Andersen <tycho@...ho.ws>, 
	Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>, juerg.haefliger@....com, 
	deepa.srinivasan@...cle.com, Jim Mattson <jmattson@...gle.com>, 
	Andrew Cooper <andrew.cooper3@...rix.com>, 
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Boris Ostrovsky <boris.ostrovsky@...cle.com>, 
	linux-mm <linux-mm@...ck.org>, Thomas Gleixner <tglx@...utronix.de>, joao.m.martins@...cle.com, 
	pradeep.vincent@...cle.com, Andi Kleen <ak@...ux.intel.com>, 
	Khalid Aziz <khalid.aziz@...cle.com>, kanth.ghatraju@...cle.com, 
	Liran Alon <liran.alon@...cle.com>, Kees Cook <keescook@...gle.com>, 
	jsteckli@...inf.tu-dresden.de, 
	Kernel Hardening <kernel-hardening@...ts.openwall.com>, chris.hyser@...cle.com, 
	Tyler Hicks <tyhicks@...onical.com>, John Haxby <john.haxby@...cle.com>, 
	Jon Masters <jcm@...hat.com>
Subject: Re: Redoing eXclusive Page Frame Ownership (XPFO) with isolated CPUs
 in mind (for KVM to isolate its guests per CPU)

On Mon, Aug 20, 2018 at 4:27 PM Dave Hansen <dave.hansen@...el.com> wrote:
>
> You're right that we could have a full physmap that we switch to for
> kmap()-like access to user pages.  But, the real problem is
> transitioning pages from kernel to user usage since it requires shooting
> down the old kernel mappings for those pages in some way.

You might decide that you simply don't care enough, and are willing to
leave possible stale TLB entries rather than shoot things down.

Then you'd still possibly see user pages in the kernel map, but only
for a fairly limited time, and only until the TLB entry gets re-used
for other reasons.

Even with kernel page table entries being marked global, their
lifetime in the TLB is likely not very long, and definitely not long
enough for some user that tries to scan for pages.

             Linus

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.