Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6455424rdb; Tue, 2 Jan 2024 02:26:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEf0Ssyp9SgCloibaghXXhww9ZgzEPmZYboW33jBvvW8Rqm8E9soPbLjwgouNLv8eq7gZde X-Received: by 2002:aa7:9d8b:0:b0:6d9:9004:7e5a with SMTP id f11-20020aa79d8b000000b006d990047e5amr6500591pfq.15.1704191192700; Tue, 02 Jan 2024 02:26:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191192; cv=none; d=google.com; s=arc-20160816; b=c2ERpqQch+49EJa1/vy0UPhIjskot/ao8aPZJRR7vTUIiMXf3oG7C8Enc/gvN805y/ 5nsHfJaUCxpbBkLDIO125bS6Bji3dLaBOVmnHuMOtYarz8+b5yDMMIA3XFC6yGPEXg/B oPQBK3Zwv7wnIUyOdIOs/div7exHy3mBAm2MuNM4BbH97wCa21aQ+WcgAJKQxHmLnTU+ 7P6kWI9pnix3hizkNzikDPk+Q/GZ6mfqfSQsqlf0/RhfUwAenLPbqGPBGwxsNNS1fbTo 83bPupj9TsHVT7t59LRVUYvkPgb7FdatMz/wo+YGY6LFflu63VJhf4H2jdIx/MCbx37u ljuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=DrUYeG/deatktSiIa5EMgox/eyB4+c+kDZtFEyuXg7A=; fh=8DIz8FYh999d1oPbpkLkyXQAr2CT/9bwZDUiEcSINRQ=; b=CKRymC+LHC/GlwNaXvOTSsejKWvDSTX61zgBKkAp6WZvfeE3OIynyFFfSKRuYpX24P hG+q3vo9A/6MPN6QIpbOd1OfL8GrLbmm/uhOqHP+6JtqNgwm64kOa/U8eRcSG9oletuP AtyPhOU902RlOUZvQw8a39FMiW6gr4yu+P1PIet4CCfZNR8KUxPnBifDyumf61iUpCW4 inbi9+2Iw9YROlkAluNAKSO2sdg+BeAaYm8eSgp1UB6srqcQEOy0RXFIvjNNoIJryXto iSRMqBfiAO/ZH4h6/ASUp9b5tZXPpL9nQrOXzaD6XXrx24U/0bGJPg75OOcdxJaweD8k laTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=CIoiT4SL; spf=pass (google.com: domain of linux-kernel+bounces-14240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q16-20020a631f50000000b005ce13c1baf1si14920950pgm.889.2024.01.02.02.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:26:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=CIoiT4SL; spf=pass (google.com: domain of linux-kernel+bounces-14240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3F4ECB2176B for ; Tue, 2 Jan 2024 10:26:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90E7CDDC7; Tue, 2 Jan 2024 10:26:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="CIoiT4SL" X-Original-To: linux-kernel@vger.kernel.org Received: from xry111.site (xry111.site [89.208.246.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7524DDBA; Tue, 2 Jan 2024 10:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1704191166; bh=RaJlaI+6zhKJ4V+dN/O223tHLNAl7Jrq0UeV5Sr8+Z8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=CIoiT4SLj/jLoF5X0LjHIQbqIGSV9SwtR4Lf6PUnNWcstCtiud+Ksx08dxkjKdtmd /wiO0LrApX0q3lbdWiUrDOUL5fBZruVQb/yBQIqVQneXMs3nNJ0FoQWtLeMqb4l+xQ jKyZLgSIbA5H50ISH8WY93pDO3PfoWKu9Mj6Ajxo= Received: from [IPv6:240e:358:11a9:2200:dc73:854d:832e:3] (unknown [IPv6:240e:358:11a9:2200:dc73:854d:832e:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 923C266C06; Tue, 2 Jan 2024 05:26:00 -0500 (EST) Message-ID: Subject: Re: [PATCH v2] LoongArch: Fix and simplify fcsr initialization on execve From: Xi Ruoyao To: Huacai Chen , WANG Xuerui Cc: Eric Biederman , Kees Cook , Tiezhu Yang , Jinyang He , loongarch@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Date: Tue, 02 Jan 2024 18:25:54 +0800 In-Reply-To: <20240102101711.10872-2-xry111@xry111.site> References: <20240102101711.10872-2-xry111@xry111.site> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-01-02 at 18:17 +0800, Xi Ruoyao wrote: > The only other architecture setting FCSR in SET_PERSONALITY2 is MIPS. > They do this for supporting different FP flavors (NaN encodings etc). > which do not exist on LoongArch.=C2=A0 I'm not sure how MIPS evades the i= ssue > (or maybe it's just buggy too) but I'll investigate it later. Phew. I just managed to recommission my 3A4000 and I can reproduce the issue as well with Linux 5.18.1 (the latest kernel release when I decommissioned it) and CONFIG_PREEMPT=3Dy. % cat measure.c #include int main() { return fetestexcept(FE_INEXACT); } % echo $((1./3)) 0.33333333333333331 % while ./a.out; do ; done (stopped in seconds) I'm building the mainline kernel on the 3A4000 now, will see if the issue still exists... --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University