Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964980AbbD0PBf (ORCPT ); Mon, 27 Apr 2015 11:01:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54880 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964786AbbD0PBe (ORCPT ); Mon, 27 Apr 2015 11:01:34 -0400 Date: Mon, 27 Apr 2015 17:00:16 +0200 From: Oleg Nesterov To: Dave Hansen Cc: Bobby Powers , linux-kernel@vger.kernel.org, x86@kernel.org, Borislav Petkov , Ingo Molnar , Andy Lutomirski , Fenghua Yu , Linus Torvalds , Pekka Riikonen , Quentin Casasnovas , Rik van Riel , Suresh Siddha , Andi Kleen Subject: Re: [PATCH] x86/fpu: always restore_xinit_state() when !use_eager_cpu() Message-ID: <20150427150016.GA26871@redhat.com> References: <1430085869-4327-1-git-send-email-bobbypowers@gmail.com> <553E4BB2.2040603@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <553E4BB2.2040603@intel.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 25 On 04/27, Dave Hansen wrote: > > On 04/26/2015 03:04 PM, Bobby Powers wrote: > > > The functional change was that flush_thread after f893959b only calls > > restore_init_xstate when both !use_eager_fpu and !used_math are true. > > drop_init_fpu (now fpu_reset_state) calls restore_init_xstate() > > regardless of whether current used_math(). > > This is really interesting. We were seeing some issues where the xstate > was not getting cleared across an exec, which seemed silly, but we just > assumed it was something that had always been there. This is because I am stupid. Without this Bobby's fix flush_thread() simply does nothing if a user-space task execs (if eagerfpu). Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/