Message ID | CAKv+Gu_VtFGsKPmFfLHm=kNM=vK=p1TR+fd52P68MiA6J0zUFQ@mail.gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDYNJBOFRECBBP6H62XAKGQEDSSYVJY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by patches.linaro.org (Postfix) with ESMTPS id EE46722E9E for <linaro@patches.linaro.org>; Wed, 26 Aug 2015 11:32:15 +0000 (UTC) Received: by wicja10 with SMTP id ja10sf4981153wic.2 for <linaro@patches.linaro.org>; Wed, 26 Aug 2015 04:32:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:in-reply-to:references :date:message-id:subject:from:to:cc:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=/zFLEuW93X7hgUurLZuPV36rYoqc0OG3IvuhyIo2DZI=; b=MLmeAd3aefFB3hcUMChwBwpijfItNK1rxRSUdmQhuZOxxQHsxROBh756Qb4CH/BWem cPQcbVTo1yvVlmFylYxdYPPzsS9usWjo3ku1t9jKSaPd/YXkGGoOUTH8mNkEA6IF2z/i xSRQmWFnD6ZkaLmKLuzg9X8CfSYZI5Njr3E0e7QhABz7cROkF/U20E7pkraW6YigsM2K PpOsufmAD1ya110OY+wRQktotovb4AM+/jaAzCpOnV0289xjlZib7H4Z93Izm6/pgL+2 nM0JgH1NVgR+IiYGAQRfCvaK+untHABI8ibg144Kdp9qhWj5WwGhUrefC157RgTCR4Tw Tlpg== X-Gm-Message-State: ALoCoQlR4QPyhHKfIkPzhUi6i55sd2C2uHQku95AYTYy8c/z+MPvLszok1SSkTtME0Dxa6ca1Psh X-Received: by 10.180.89.104 with SMTP id bn8mr2371046wib.4.1440588735252; Wed, 26 Aug 2015 04:32:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.38 with SMTP id lt6ls824174lac.50.gmail; Wed, 26 Aug 2015 04:32:15 -0700 (PDT) X-Received: by 10.112.204.162 with SMTP id kz2mr30509645lbc.115.1440588735029; Wed, 26 Aug 2015 04:32:15 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id kx10si18542261lac.157.2015.08.26.04.32.15 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 04:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lalv9 with SMTP id v9so116981726lal.0 for <patchwork-forward@linaro.org>; Wed, 26 Aug 2015 04:32:15 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr30546002lac.106.1440588734844; Wed, 26 Aug 2015 04:32:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp3856494lbb; Wed, 26 Aug 2015 04:32:13 -0700 (PDT) X-Received: by 10.68.182.3 with SMTP id ea3mr68047376pbc.126.1440588733469; Wed, 26 Aug 2015 04:32:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si38165236pds.29.2015.08.26.04.32.08; Wed, 26 Aug 2015 04:32:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756394AbbHZLcG (ORCPT <rfc822;matthew.hart@linaro.org> + 28 others); Wed, 26 Aug 2015 07:32:06 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:32830 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753504AbbHZLcE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Aug 2015 07:32:04 -0400 Received: by iods203 with SMTP id s203so14648730iod.0 for <linux-kernel@vger.kernel.org>; Wed, 26 Aug 2015 04:32:03 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.16.33 with SMTP id y33mr2610473ioi.183.1440588723583; Wed, 26 Aug 2015 04:32:03 -0700 (PDT) Received: by 10.36.138.69 with HTTP; Wed, 26 Aug 2015 04:32:03 -0700 (PDT) In-Reply-To: <20150826111205.GD30466@arm.com> References: <1440556841-17219-1-git-send-email-chunyan.zhang@spreadtrum.com> <20150826111205.GD30466@arm.com> Date: Wed, 26 Aug 2015 13:32:03 +0200 Message-ID: <CAKv+Gu_VtFGsKPmFfLHm=kNM=vK=p1TR+fd52P68MiA6J0zUFQ@mail.gmail.com> Subject: Re: [PATCH] arm64: fix bug for reloading FPSIMD state after execve on cpu 0. From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: Will Deacon <will.deacon@arm.com> Cc: Chunyan Zhang <chunyan.zhang@spreadtrum.com>, Catalin Marinas <Catalin.Marinas@arm.com>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "jianhua.ljh@gmail.com" <jianhua.ljh@gmail.com>, "orson.zhai@spreadtrum.com" <orson.zhai@spreadtrum.com>, "xiongshan.an@spreadtrum.com" <xiongshan.an@spreadtrum.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 44d6f7545505..c56956a16d3f 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -158,6 +158,7 @@ void fpsimd_thread_switch(struct task_struct *next) void fpsimd_flush_thread(void) { memset(¤t->thread.fpsimd_state, 0, sizeof(struct fpsimd_state)); + fpsimd_flush_task_state(current); set_thread_flag(TIF_FOREIGN_FPSTATE); }