Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 14 Aug 2018 15:02:34 -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 1fpao2-0001OR-KF for speck@linutronix.de; Tue, 14 Aug 2018 17:00:23 +0200 Date: Tue, 14 Aug 2018 08:00:10 -0700 From: Andi Kleen Subject: [MODERATED] Re: Cache load gadgets Message-ID: <20180814150010.GB10097@tassilo.jf.intel.com> References: <1533736415.3615.64.camel@infradead.org> <20180808145316.GX4238@tassilo.jf.intel.com> <20180808153429.quokqzwwvnripsdj@treble> <20180813151727.GA15539@char.us.oracle.com> <1534178427.2538.64.camel@infradead.org> <20180813192757.GA25361@agluck-desk> <74d17229-bb72-5d2b-7ea9-46402c0f0b07@alien8.de> MIME-Version: 1.0 In-Reply-To: <74d17229-bb72-5d2b-7ea9-46402c0f0b07@alien8.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: > That's unfortunately not sufficient. You could still end up pulling > arbitrary memory in the cache by misspeculating in the kernel. In the You claim that, but where are the exploits? There is lots of theoretical speculation on how attacks could be chained, but in practice everyone who tried it found it quite difficult. All the newer attacks are usually somewhat fragile to start with, and if you start combining them they become more and more difficult. At some point theoretical turns into impractical. > The viable long term plan is to remove as many mappings from the global viable? > kernel address space as possible. Specifically, while being in the > context of process A, memory of process B should not be visible in the > kernel. You're basically proposing a major rewrite on how Linux works, with sprinkling kmap everywhere. kmap on 32bit was an absolutely nightmare, and it was only used in very limited places. I doubt there is any practical way to pull this off given the size of the code base, even ignoring the likely performance loss. -Andi