Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753309Ab3I0LA0 (ORCPT ); Fri, 27 Sep 2013 07:00:26 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:44229 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753265Ab3I0LAU (ORCPT ); Fri, 27 Sep 2013 07:00:20 -0400 Date: Fri, 27 Sep 2013 11:59:58 +0100 From: Catalin Marinas To: Jiang Liu Cc: Will Deacon , Jiang Liu , Ard Biesheuvel , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFT PATCH v1 1/7] arm64: fix possible invalid FPSIMD initialization state Message-ID: <20130927105957.GB11063@MacBook-Pro.local> References: <1380269087-8520-1-git-send-email-liuj97@gmail.com> <1380269087-8520-2-git-send-email-liuj97@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1380269087-8520-2-git-send-email-liuj97@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 686 Lines: 18 On Fri, Sep 27, 2013 at 09:04:41AM +0100, Jiang Liu wrote: > From: Jiang Liu > > If context switching happens during executing fpsimd_flush_thread(), > stale value in FPSIMD registers will be saved into current thread's > fpsimd_state by fpsimd_thread_switch(). That may cause invalid > initialization state for the new process, so disable preemption > when executing fpsimd_flush_thread(). Good catch. -- Catalin -- 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/