Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6573015imu; Mon, 21 Jan 2019 11:17:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Wn1GomGH1c3NMeSnDLXbQC03fdk0mwaDb+Xf6ltfFqKcshfImC1vAFSoGAgDnGVkT0CnG X-Received: by 2002:a17:902:2ec1:: with SMTP id r59mr31696336plb.254.1548098267647; Mon, 21 Jan 2019 11:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548098267; cv=none; d=google.com; s=arc-20160816; b=q0/d3ZjGoSlMCLdB73A4apzYP1ar3v4quT3B4LLOEHmR6re1ppvt0ki7/jA+Q4X8dn 1sOrSxZDOO7OpqkYyNr+Viuf0yYL8bWGzVb3WVZtbMA848eGxza1c2gP+Shk4kBfNUl4 h5BZ3YLQVGXwufwokfw96mWwKkc5U1SU4mV6eoDGIMPLY0zRujEF8w9QXqXBWzAzKDY8 TwJldcomfUyxzqasqoYyDRe3LMYrltzlkLx8ypTSxub2vBEEao9lVTF5loDzdbhRc9xt QLv+LKBt8x0oYPXuqlVA1zrtVo1ash4Gkrl/LVlb/ZWvXktYyBOGJmHn7Vk7Obdn/XUL zi3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HpyzwYG1FmAjLf8DE0LjDD5RPDNG5FqsA6xwLKgXMrc=; b=y7uOmgSOASZGBgv2878I+lczX61BsSt9GvzNjdH93WHHolHhV6U9RGAT1TFZ2GZrF8 rw1pp96aLEZ7MDWNuGm9+WY6uFz8iziwqBlUogseETr+/e9NntjVc8ieoAeaIh2AVndH TzJEAuYELPoo3xBK+EF+WwkcD6EIO1TZ/yLVj60HAreQuWa1006gM/OzFuaFkYEBoTAk 1VamCpou5+0auxImuVwYYn+PEEWbnlHiVXJNOdKeVcQLDmQP55kszQ85J+Ply9uNymGG uRyvW+joHeUw/viEABxtYF4tIsLfiPRwun7YKj87KLTXsPvf5vJErvDdAQJvOcflNJ0m m59A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qdkw6Sx7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg7si334543plb.149.2019.01.21.11.17.32; Mon, 21 Jan 2019 11:17:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qdkw6Sx7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727796AbfAUTPo (ORCPT + 99 others); Mon, 21 Jan 2019 14:15:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:39956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbfAUTPo (ORCPT ); Mon, 21 Jan 2019 14:15:44 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC52D2089F; Mon, 21 Jan 2019 19:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548098143; bh=9fPvEs/PgoQJvwCEzm5MVBesbZMOcsYpOdVVRUXs97s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qdkw6Sx7rdfdAlIyZsB2CHz/w77+d136iOeZGU2dm5z9uPefs+b4w1FnxqeVSdm6S z4h7/tstUMLhJ4G+ym9p36ToBYrSKRg+C5eqAZ8fdI1CzAGCVpqhDkAztuMf7dlJoO kGCWFIE6wF1Z2og9FnaqKMjonCSHQmyxQuWRyTYg= Date: Mon, 21 Jan 2019 20:15:41 +0100 From: Greg KH To: Andi Kleen Cc: Julian Stecklina , linux-kernel@vger.kernel.org, David Woodhouse , Liran Alon , Paolo Bonzini , Thomas Gleixner , Linus Torvalds , x86@kernel.org, Kernel Hardening Subject: Re: [RFC] x86/speculation: add L1 Terminal Fault / Foreshadow demo Message-ID: <20190121191541.GB4026@kroah.com> References: <1548076208-6442-1-git-send-email-jsteckli@amazon.de> <20190121183618.GP6118@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190121183618.GP6118@tassilo.jf.intel.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 10:36:18AM -0800, Andi Kleen wrote: > > + /* Check the start address: needs to be page-aligned.. */ > > +- if (start & ~PAGE_MASK) > > ++ if (start & ~PAGE_MASK) { > > ++ > > ++ /* > > ++ * XXX Hack > > ++ * > > ++ * We re-use this error case to show case a cache load gadget: > > ++ * There is a mispredicted branch, which leads to prefetching > > ++ * the cache with attacker controlled data. > > ++ */ > > ++ asm volatile ( > > Obviously that can never be added to a standard kernel. No, that's why it is a patch, right? People want to test things, it's nice to have a way to easily do this. > And I don't see much point in shipping test cases that require non > standard kernel patching. The idea of shipping test cases is that > you can easily test them, but in this form it can't. It's better than having nothing at all, which is what we have today. So I see no harm in it, only benefits. thanks, greg k-h