From: Herbert Xu Subject: Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state changes Date: Sat, 9 Aug 2008 22:37:27 +0800 Message-ID: <20080809143727.GA30499@gondor.apana.org.au> References: <200807171653.59177.wolfgang.walter@stwm.de> <20080806201401.GA607@linux-os.sc.intel.com> <200808071823.02364.wolfgang.walter@stwm.de> <200808081236.55172.wolfgang.walter@stwm.de> <20080808185356.GC607@linux-os.sc.intel.com> <489C97FB.2030408@zytor.com> <20080808231121.GA13158@linux-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "H. Peter Anvin" , Wolfgang Walter , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ingo Molnar , "viro@ZenIV.linux.org.uk" , "vegard.nossum@gmail.com" To: Suresh Siddha Return-path: Received: from rhun.apana.org.au ([64.62.148.172]:54381 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754447AbYHIOhh (ORCPT ); Sat, 9 Aug 2008 10:37:37 -0400 Content-Disposition: inline In-Reply-To: <20080808231121.GA13158@linux-os.sc.intel.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Aug 08, 2008 at 04:11:21PM -0700, Suresh Siddha wrote: > > With out the recent dynamic fpu allocation changes, while we don't see oops, > there is a possible race still present in older kernels(for example, > while kernel is using kernel_fpu_begin() in some optimized clear/copy > page and an interrupt/softirq happens which uses these padlock > instructions generating DNA fault). No this wasn't a problem because kernel_fpu_begin clears TS and therefore we don't get faults on SSE instructions. However, with your patch it will become a problem due to the fact that it wasn't designed to be nested. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt