Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 13 Aug 2018 16:30:50 -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 1fpFij-0001Xy-He for speck@linutronix.de; Mon, 13 Aug 2018 18:29:30 +0200 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 23BD187A78 for ; Mon, 13 Aug 2018 16:29:22 +0000 (UTC) Received: from [10.36.116.57] (ovpn-116-57.ams2.redhat.com [10.36.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7813251DE for ; Mon, 13 Aug 2018 16:29:21 +0000 (UTC) Subject: [MODERATED] Re: Cache load gadgets References: <1533736415.3615.64.camel@infradead.org> <1533842451.1986.9.camel@infradead.org> From: Paolo Bonzini Message-ID: <3bae8cd4-3b51-8ce1-3dce-bd855be02c75@redhat.com> Date: Mon, 13 Aug 2018 18:29:20 +0200 MIME-Version: 1.0 In-Reply-To: <1533842451.1986.9.camel@infradead.org> Content-Type: multipart/mixed; boundary="Ru4D018SYvxQOJeGrNIBBisO00AAbzVQk"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --Ru4D018SYvxQOJeGrNIBBisO00AAbzVQk Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 09/08/2018 21:20, speck for David Woodhouse wrote: > On Thu, 2018-08-09 at 21:00 +0200, speck for Thomas Gleixner wrote: >> On Wed, 8 Aug 2018, speck for David Woodhouse wrote: >> >>> If we aren't disabling hyperthreading, then we get to lose sleep over= >>> what a VM guest can trick us into loading into L1$ while a sibling ru= ns >>> the attack. >>> =C2=A0 >>> For this they only need half a Spectre-v1 gadget; they only need to >>> load something into L1. We've tweaked our scanner and trawled through= >>> the false positives, and we have a handful of patches which look >>> something like the one below. >>> >>> Should we be getting these into the tree for next Tuesday's release? >> >> They look simple enough. So yes, why not as it needs to be fixed anywa= y. >=20 > Well... a lot of people are busy making production builds and testing > them, and getting things ready to release on Tuesday. >=20 > If we pile more stuff on now, we're basically making a lot of people > throw it all away and work through the weekend. Which is fine if it's > necessary... but we should only really do if it if *is* necessary. >=20 > I'm inclined to suggest the gadget fixes can wait until Tuesday.=C2=A0 >=20 Furthermore, this is totally unmaintainable. Can the shiny compiler plugin infrastructure be used to mark the variable instead of the uses? Yeah, I know that smells a lot like "volatile" but in this case it may be a better thing to do. Paolo --Ru4D018SYvxQOJeGrNIBBisO00AAbzVQk--