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 10:04:26 -0000 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fqbZ3-0002jr-1f for speck@linutronix.de; Fri, 17 Aug 2018 12:01:05 +0200 Content-Type: multipart/mixed; boundary="===============1184488959281492084==" MIME-Version: 1.0 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2b-a7fdc47a.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w7H9wefg004955 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Fri, 17 Aug 2018 09:58:44 GMT 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> <101491ea-a194-6b07-9974-8bbbc50ca745@redhat.com> From: Norbert Manthey Message-ID: <7687a33d-b03d-8aca-6d13-789f73bbe821@amazon.de> Date: Fri, 17 Aug 2018 11:58:36 +0200 MIME-Version: 1.0 In-Reply-To: <101491ea-a194-6b07-9974-8bbbc50ca745@redhat.com> To: speck@linutronix.de List-ID: --===============1184488959281492084== Content-Type: multipart/mixed; boundary="I5RIVgApC3gr9VUCW2KLCMPvw9c897mz6"; protected-headers="v1" --I5RIVgApC3gr9VUCW2KLCMPvw9c897mz6 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 08/17/2018 11:18 AM, speck for Paolo Bonzini wrote: > 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 th= e >>> 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. >> >> 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. >> >> I guess there are quite some people in the b) camp at the moment. >=20 > 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 i= n > general is hard and unmaintainable though. At least we should use > sparse static analysis to track those tainted values. >=20 > Paolo >=20 Do you mean you want to run the smatch tool and raise spectre related candidates, e.g. similarly to what syzbot is doing, and run that against the development branches, as well as selected stable branches? Is there anybody doing continuous analysis like that already? And if not, what would be the expectations for such a system? Best, Norbert --I5RIVgApC3gr9VUCW2KLCMPvw9c897mz6-- --===============1184488959281492084== Content-Type: multipart/alternative; boundary="===============6988622546281564768==" MIME-Version: 1.0 Content-Disposition: inline --===============6988622546281564768== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Amazon Development Center Germany GmbH Berlin - Dresden - Aachen main office: Krausenstr. 38, 10117 Berlin Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger Ust-ID: DE289237879 Eingetragen am Amtsgericht Charlottenburg HRB 149173 B --===============6988622546281564768== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

= Amazon Development Center Germany GmbH =
Berlin - Dresden - Aachen
main office: Krausenstr. 38, 10117 Berlin
Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger
Ust-ID: DE289237879
Eingetragen am Amtsgericht Charlottenburg HRB 149173 B
=

--===============6988622546281564768==-- --===============1184488959281492084==--