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 20:49:10 -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 1fpJm0-0005yh-AN for speck@linutronix.de; Mon, 13 Aug 2018 22:49:08 +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 23115402346C for ; Mon, 13 Aug 2018 20:49:01 +0000 (UTC) Received: from treble (ovpn-124-166.rdu2.redhat.com [10.10.124.166]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 011661C718 for ; Mon, 13 Aug 2018 20:49:00 +0000 (UTC) Date: Mon, 13 Aug 2018 15:48:59 -0500 From: Josh Poimboeuf Subject: [MODERATED] Re: Cache load gadgets Message-ID: <20180813204859.udixjnld4v33n4q4@treble> References: <1533736415.3615.64.camel@infradead.org> <20180808145316.GX4238@tassilo.jf.intel.com> <20180808153429.quokqzwwvnripsdj@treble> <20180813151727.GA15539@char.us.oracle.com> <20180813172303.5d3umkf3ciqrkz5b@treble> <20180813185922.GE5606@kroah.com> <20180813195404.es23nco6ydyorlyi@treble> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Mon, Aug 13, 2018 at 01:20:48PM -0700, speck for Linus Torvalds wrote: > > > On Mon, 13 Aug 2018, speck for Josh Poimboeuf wrote: > > > > > > I do search for these and not many are making it into the tree. > > > Certainly not 300... > > > > It will take time. Jeremy has been out the last few weeks and I've been > > preoccupied with L1TF. > > > > And BTW, it will be a lot more than 300... > > I do not believe I want to see these idiotic cache gadgets annotated or > "fixed" in the kernel. Definitely not by hand, and I doubt it's even > fixable in a compiler. > > Just give it up. At some point, there is nothing we can do. It's trivial > to find code that loads something off a random pointer and populates a > cacheline. It's not a "gadget", it's just a fact of life. Well, but we're talking about Spectre v1 here. It's not just some random pointer; the user can force a speculative load from *any* address. Are you suggesting we just give up on Spectre v1? -- Josh