From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from TheWorld.com (pcls2.std.com [192.74.137.142]) by ozlabs.org (Postfix) with ESMTP id 89244679F2 for ; Wed, 22 Feb 2006 18:20:06 +1100 (EST) From: Alan Curry Message-Id: <200602220642.BAA1170849@shell.TheWorld.com> Subject: Re: [PATCH] powerpc: fix altivec_unavailable_exception Oopses To: galak@kernel.crashing.org (Kumar Gala) Date: Wed, 22 Feb 2006 01:42:37 -0500 (EST) In-Reply-To: <4A2CF403-20CC-4AE9-B955-9BA2E92A5474@kernel.crashing.org> from "Kumar Gala" at Feb 21, 2006 06:52:16 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Kumar Gala writes the following: > >Would you mine providing a patch for arch/ppc/kernel/head.S and >adding a signed-off-by line. OK, combined patch... applies clean to 2.6.16-rc4, applies with fuzz to 2.6.15.4, both compiled and tested. Patch prevents Oopsing of CONFIG_ALTIVEC=n kernel by user executing altivec instruction in both cases. Signed-off-by: Alan Curry --- arch/ppc/kernel/head.S.orig 2006-02-21 20:58:08.000000000 -0500 +++ arch/ppc/kernel/head.S 2006-02-21 20:58:11.000000000 -0500 @@ -751,6 +751,7 @@ AltiVecUnavailable: #ifdef CONFIG_ALTIVEC bne load_up_altivec /* if from user, just load it up */ #endif /* CONFIG_ALTIVEC */ + addi r3,r1,STACK_FRAME_OVERHEAD EXC_XFER_EE_LITE(0xf20, altivec_unavailable_exception) #ifdef CONFIG_PPC64BRIDGE --- arch/powerpc/kernel/head_32.S.orig 2006-02-21 15:58:18.000000000 -0500 +++ arch/powerpc/kernel/head_32.S 2006-02-21 15:59:23.000000000 -0500 @@ -714,6 +714,7 @@ AltiVecUnavailable: #ifdef CONFIG_ALTIVEC bne load_up_altivec /* if from user, just load it up */ #endif /* CONFIG_ALTIVEC */ + addi r3,r1,STACK_FRAME_OVERHEAD EXC_XFER_EE_LITE(0xf20, altivec_unavailable_exception) PerformanceMonitor: