Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751981AbeADBr5 (ORCPT + 1 other); Wed, 3 Jan 2018 20:47:57 -0500 Received: from mx2.suse.de ([195.135.220.15]:49591 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751727AbeADBr4 (ORCPT ); Wed, 3 Jan 2018 20:47:56 -0500 Date: Thu, 4 Jan 2018 02:47:51 +0100 (CET) From: Jiri Kosina To: Alan Cox cc: Linus Torvalds , Dan Williams , Linux Kernel Mailing List , Mark Rutland , linux-arch@vger.kernel.org, Peter Zijlstra , Greg KH , Thomas Gleixner , Elena Reshetova Subject: Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier In-Reply-To: <20180104014100.3786e686@alans-desktop> Message-ID: References: <20180103223827.39601-1-mark.rutland@arm.com> <151502463248.33513.5960736946233335087.stgit@dwillia2-desk3.amr.corp.intel.com> <20180104010754.22ca6a74@alans-desktop> <20180104014100.3786e686@alans-desktop> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, 4 Jan 2018, Alan Cox wrote: > > If the CPU speculation can cause these kinds of side-effects, it just must > > not happen, full stop. > > At which point your performance will resemble that of a 2012 atom > processor at best. You know what? I'd be completely fine with that, if it's traded for "my ssh and internet banking keys are JUST MINE, ok?" :) > Clearly if the CPU must be told then C is going to have to grow some > syntax for it and some other languages are going to see 'taint' moving > from a purely software construct to a real processor one. Again, what is the problem with "yeah, it turned out to speed things up in the past, but hey, it has security issues, so we stopped doing it" aproach? Thanks, -- Jiri Kosina SUSE Labs