Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 17 Aug 2018 09:18:54 -0000 Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fqauD-00025z-Ce for speck@linutronix.de; Fri, 17 Aug 2018 11:18:53 +0200 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E1DB9406222D for ; Fri, 17 Aug 2018 09:18:46 +0000 (UTC) Received: from [10.36.112.15] (unknown [10.36.112.15]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 98C421049480 for ; Fri, 17 Aug 2018 09:18:44 +0000 (UTC) Subject: [MODERATED] Re: Cache load gadgets 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> <20180814150010.GB10097@tassilo.jf.intel.com> <8fbc0b4a-7c2a-e8bb-2da4-fc7ea67085b7@alien8.de> From: Paolo Bonzini Message-ID: <101491ea-a194-6b07-9974-8bbbc50ca745@redhat.com> Date: Fri, 17 Aug 2018 11:18:42 +0200 MIME-Version: 1.0 In-Reply-To: <8fbc0b4a-7c2a-e8bb-2da4-fc7ea67085b7@alien8.de> Content-Type: multipart/mixed; boundary="IpUgDjwcp0EpuclxPxdYm2bOCtkWl7y3w"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --IpUgDjwcp0EpuclxPxdYm2bOCtkWl7y3w Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 17/08/2018 11:11, speck for Julian Stecklina wrote: > On 08/14/2018 05:00 PM, speck for Andi Kleen wrote: >>> 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.=20 >> >> 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. >=20 > L1TF in combination with a suitable cache load gadget on a HT-enabled > system is very practical. As we are not going to fix pure cache load > gadgets in the kernel, this leaves two options for the security minded:= > a) Turn off HT and take a large performance hit for some workloads or b= ) > carry their own patches on top of upstream. >=20 > I guess there are quite some people in the b) camp at the moment. KVM is special in that it has the EPT variant of L1TF, and fixing the most blatant cache load gadgets there is probably feasible. Doing it in general is hard and unmaintainable though. At least we should use sparse static analysis to track those tainted values. Paolo --IpUgDjwcp0EpuclxPxdYm2bOCtkWl7y3w--