From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state changes Date: Mon, 11 Aug 2008 17:48:44 -0700 Message-ID: <48A0DDEC.704@zytor.com> References: <489DC15D.9070308@zytor.com> <20080809185224.GH13158@linux-os.sc.intel.com> <20080809193724.GJ13158@linux-os.sc.intel.com> <20080810030521.GA2332@gondor.apana.org.au> <20080811190131.GL13158@linux-os.sc.intel.com> <20080811192203.GC12788@elte.hu> <48A0920B.30306@zytor.com> <20080811201901.GN13158@linux-os.sc.intel.com> <20080812003938.GC18230@gondor.apana.org.au> <48A0DC6D.8040409@zytor.com> <20080812004641.GB18444@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Suresh Siddha , Ingo Molnar , Wolfgang Walter , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "viro@ZenIV.linux.org.uk" , "vegard.nossum@gmail.com" , Thomas Gleixner To: Herbert Xu Return-path: Received: from terminus.zytor.com ([198.137.202.10]:57582 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbYHLAz0 (ORCPT ); Mon, 11 Aug 2008 20:55:26 -0400 In-Reply-To: <20080812004641.GB18444@gondor.apana.org.au> Sender: netdev-owner@vger.kernel.org List-ID: Herbert Xu wrote: > On Mon, Aug 11, 2008 at 05:42:21PM -0700, H. Peter Anvin wrote: >> That's not sufficient, though, because you have to track all the state >> and how it relates to everything. You now have to track both the >> userspace FPU state and the potential kernel FPU state. The VIA >> instructions are special (in the short bus to school sense) in that they >> use a mechanism intended to protect specific state to protect -- exactly >> nothing. > > Sorry, the kernel TS state is what I meant. I'm definitely not > advocating the saving of the kernel FPU state. This is only for > things like the VIA (which also exists for other processors, see > the xor SSE stuff in include/asm-x86). No, there you are actually using the FPU state (which includes the SSE state.) -hpa