Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 08 Aug 2018 17:22:52 -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 1fnSAc-0008HW-QI for speck@linutronix.de; Wed, 08 Aug 2018 19:22:51 +0200 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 19DCB402345E for ; Wed, 8 Aug 2018 17:22:44 +0000 (UTC) Received: from treble (ovpn-121-83.rdu2.redhat.com [10.10.121.83]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EC10B20180F4 for ; Wed, 8 Aug 2018 17:22:43 +0000 (UTC) Date: Wed, 8 Aug 2018 12:22:42 -0500 From: Josh Poimboeuf Subject: [MODERATED] Re: Cache load gadgets Message-ID: <20180808172242.ajzzhuy2oildkukl@treble> References: <1533736415.3615.64.camel@infradead.org> <20180808145316.GX4238@tassilo.jf.intel.com> <20180808153429.quokqzwwvnripsdj@treble> <20180808165046.GY4238@tassilo.jf.intel.com> MIME-Version: 1.0 In-Reply-To: <20180808165046.GY4238@tassilo.jf.intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Wed, Aug 08, 2018 at 09:50:46AM -0700, speck for Andi Kleen wrote: > On Wed, Aug 08, 2018 at 10:34:29AM -0500, speck for Josh Poimboeuf wrote: > > On Wed, Aug 08, 2018 at 07:53:16AM -0700, speck for Andi Kleen wrote: > > > On Wed, Aug 08, 2018 at 02:53:35PM +0100, 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 runs > > > > the attack. > > > > > > > > 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? > > > > > > I don't think it's absolutely needed for Tuesday, can go in slower. > > > > > > There will be a range of enhancements for L1TF beyond Tuesday anyways. > > > > Yet this patch is trivial, no harm in merging it now. We already have a > > similar one in RHEL (and several hundred more like it). > > The main concern with such an approach is that we need something > scalable to get new code that goes into the kernel scanned > and fixed. > > Otherwise it'll quickly bitrot. Yeah, long term we need to have compiler/tooling support to fix these automatically. In the mean time we have to plug the holes manually (and significant work is already going on upstream to do so). -- Josh