Return-path: Received: from mga14.intel.com ([192.55.52.115]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fFjBy-000134-1m for speck@linutronix.de; Mon, 07 May 2018 18:40:50 +0200 From: Dave Hansen Subject: [MODERATED] [PATCH v2] Linux Patch 1/1 References: <92c45587-5eb3-2421-6fc1-42e74a715e30@linux.intel.com> <20180427164743.GA14180@pd.tnic> <6e2b14fc-3bf6-071d-6ce2-e518f2c4f069@redhat.com> <20180427173221.GB14180@pd.tnic> <20180427180944.GD75137@tassilo.jf.intel.com> <2de93c45-9bcc-136d-3534-03d05bd6b660@redhat.com> Message-ID: <7c5402b0-43dd-f9ad-99af-536cdef92073@linux.intel.com> Date: Mon, 7 May 2018 09:40:47 -0700 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 05/03/2018 08:51 PM, speck for Linus Torvalds wrote: > So now you have one big wrinkle already. But the *really* big wrinkle is > that you also have to have interesting data that the store that was > bypassed was actually hiding. When I first heard about this being another "bounds bypass", I wasn't all that worried, certainly not for the kernel. We don't frequently shrink arrays or put secret data in array slots that were recently accessible as non-secrets. But, there is a _partial_ PoC that demonstrates some of this stuff crossing the kernel boundary with eBPF. eBPF does a good job of tracking the architectural value of registers to make sure they, for instance, contain pointers to things that are supposed to be dereferenced. But, if you can cause some type confusion (with speculative store bypass) you can get speculative dereferences of eBPF registers that don't contain pointers at all. I think the bar is still way higher than for Spectre V1, though.