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 16:50:57 -0000 Received: from mga04.intel.com ([192.55.52.120]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fnRfj-0007jj-Ny for speck@linutronix.de; Wed, 08 Aug 2018 18:50:56 +0200 Date: Wed, 8 Aug 2018 09:50:46 -0700 From: Andi Kleen Subject: [MODERATED] Re: Cache load gadgets Message-ID: <20180808165046.GY4238@tassilo.jf.intel.com> References: <1533736415.3615.64.camel@infradead.org> <20180808145316.GX4238@tassilo.jf.intel.com> <20180808153429.quokqzwwvnripsdj@treble> MIME-Version: 1.0 In-Reply-To: <20180808153429.quokqzwwvnripsdj@treble> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: 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. -Andi