From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755007AbbCESep (ORCPT ); Thu, 5 Mar 2015 13:34:45 -0500 Received: from mga11.intel.com ([192.55.52.93]:14295 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbbCESeo (ORCPT ); Thu, 5 Mar 2015 13:34:44 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,348,1422950400"; d="scan'208";a="661007513" Message-ID: <54F8A1C4.1010504@intel.com> Date: Thu, 05 Mar 2015 10:34:44 -0800 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Oleg Nesterov , Borislav Petkov CC: 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 References: <54F74F59.5070107@intel.com> <20150304190651.GA5589@redhat.com> <20150304200612.GO3663@pd.tnic> <20150305151442.GA18996@redhat.com> <20150305182203.GA4203@redhat.com> In-Reply-To: <20150305182203.GA4203@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/05/2015 10:22 AM, Oleg Nesterov wrote: > On 03/05, Oleg Nesterov wrote: >> I _think_ that the difference is that eager_fpu_init()->xrstor_state() >> was called before apply_alternatives(), so it used XRSTOR. >> >> Note also that (before this commit) restore_fpu_checking() was almost >> never called right after init_fpu(). If use_eager_fpu() == T. >> >> After this commit the first xrstor_state() uses XRSTORS. And that is >> how (I think) 'noxsaves' makes the difference. >> >> >> So. I can be easily wrong, but so far I _think_ that this commit disclosed >> another problem. And even if I am wrong and this commit is buggy, we need >> to understand why ;) >> >> I'll try to think about debugging patch, I can't reproduce this problem >> on my machine... > > Dave. could please run the test-case below? > > Without 'noxsaves', and without my commit. So you want it tested at 4b2e762e2e5 in tip/x86/fpu?