Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757749AbaAJQMO (ORCPT ); Fri, 10 Jan 2014 11:12:14 -0500 Received: from terminus.zytor.com ([198.137.202.10]:46416 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbaAJQMN (ORCPT ); Fri, 10 Jan 2014 11:12:13 -0500 Message-ID: <52D01BAC.2060909@zytor.com> Date: Fri, 10 Jan 2014 08:11:24 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Linus Torvalds , Borislav Petkov CC: halfdog , Konrad Rzeszutek Wilk , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Linux Kernel Mailing List , Ben Hutchings Subject: Re: Sanitize CPU-state when switching tasks (was sanitize CPU-state when switching from virtual-8086 mode to other task) References: <20131231192106.GA22535@phenom.dumpdata.com> <52C347F0.8070902@zytor.com> <52CD022E.9040107@halfdog.net> <52CD8E10.3010204@zytor.com> <20140108193655.GD5098@pd.tnic> <52CDC316.4050503@halfdog.net> <52CDD3AE.4030301@zytor.com> <20140109225815.GI11594@pd.tnic> <52CF573F.8030300@zytor.com> <20140110100604.GA12077@pd.tnic> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/10/2014 03:16 AM, Linus Torvalds wrote: > On Fri, Jan 10, 2014 at 6:06 PM, Borislav Petkov wrote: >> >> Tested-by: Borislav Petkov > > Ok, good. > > Peter, do you want to take it (feel free to add my sign-off), or > should I just commit it? > > Also, is there a way to have a "likely not true" version of that > "static_cpu_has()"? There seems to be no way to make the non-K7/K8 > case the fallthrough code.. Not that this is likely that > performance-critical, but.. > I'll take it. We don't have a "likely not true" version of static_cpu_has() at this point... it would mean we couldn't do short jumps unfortunately (and they would still take the false path until alternatives run.) -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/