From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932857AbbCDUH2 (ORCPT ); Wed, 4 Mar 2015 15:07:28 -0500 Received: from cantor2.suse.de ([195.135.220.15]:49492 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932690AbbCDUHZ (ORCPT ); Wed, 4 Mar 2015 15:07:25 -0500 Date: Wed, 4 Mar 2015 21:06:12 +0100 From: Borislav Petkov To: Oleg Nesterov Cc: Dave Hansen , Quentin Casasnovas , Andy Lutomirski , Ingo Molnar , Linus Torvalds , Pekka Riikonen , Rik van Riel , Suresh Siddha , LKML , "Yu, Fenghua" Subject: Re: Oops with tip/x86/fpu Message-ID: <20150304200612.GO3663@pd.tnic> References: <54F74F59.5070107@intel.com> <20150304190651.GA5589@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150304190651.GA5589@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 04, 2015 at 08:06:51PM +0100, Oleg Nesterov wrote: > Thanks. I'll try to investigate tomorrow. > > Well, the kernel crashes because xrstor_state() is buggy, Quentin already > has a fix. > > But #GP should be explained... Could it be one of those conditions for which XRSTORS #GPs, like "If XRSTORS attempts to load MXCSR with an illegal value, a general-protection exception (#GP) occurs." for example? I'm looking at the SDM section for XRSTORS. I mean, math_state_restore() does init_fpu() and down that road we're allocating an FPU state ... but we did init_fpu() before too, in eager_fpu_init(). So what changed? Maybe I'm looking in a totally wrong direction, it is too late here to stare at FPU code anyway... Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --