Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 20 Aug 2018 20:14:59 -0000 Received: from mga05.intel.com ([192.55.52.43]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1frqZm-0004hr-6P for speck@linutronix.de; Mon, 20 Aug 2018 22:14:58 +0200 Subject: [MODERATED] Re: Memory isolation on processes running in isolcpus. Linus, please read. References: <20180820200608.GD29187@char.us.oracle.com> From: Dave Hansen Message-ID: Date: Mon, 20 Aug 2018 13:14:55 -0700 MIME-Version: 1.0 In-Reply-To: <20180820200608.GD29187@char.us.oracle.com> Content-Type: multipart/mixed; boundary="NYEGSgS9MxDlazdMoSzVz15tgiEPewzeW"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --NYEGSgS9MxDlazdMoSzVz15tgiEPewzeW Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 08/20/2018 01:06 PM, speck for Konrad Rzeszutek Wilk wrote: > 1). Linus, you are cool with the idea of having further kernel page iso= lation which > Julian captured rather nicely: > =E2=80=9CSpecifically, while being in the context of process A, memory = of process B > should not be visible in the kernel. =E2=80=9C=20 That actually sounds less effective and probably more work to do than XPFO (https://lwn.net/Articles/700647/). (Not that I'm endorsing XPFO... the patches were still quite a mess last I looked) It's less effective because it still allows things like "heap spraying" where you let an app who has access to a lot of memory fill up a lot of the kernel address space with juicy, attacker-supplied data. It's more complicated because you have lots of versions of the kernel address space to manage instead of one. I bet it's also loads of fun to precisely enforce the "memory of process B". --NYEGSgS9MxDlazdMoSzVz15tgiEPewzeW--