Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3281169pxb; Sat, 23 Oct 2021 21:28:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPNIPACyN7kMTH/vLPba9SaLMEH490S5rVUUa9OzWCMsNmPKjv65Me7BT+TabBMzqWWFbi X-Received: by 2002:a17:90b:1e49:: with SMTP id pi9mr26006626pjb.144.1635049691952; Sat, 23 Oct 2021 21:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635049691; cv=none; d=google.com; s=arc-20160816; b=a38aqMXOn9EfqkcYMFlg+Hlrvj9tBTLmyMUo+FiN+sbLiDCr4W7kt9BkA5yxIsWxNk OypOoGJg/Mq65LtXEZdiVVCG1MAU4NNnenWyZWbfpy/KunI1trNjBkr6XLJ9qiTOHwrZ sUOYDSVk4YPUm8LpaUcknoCJwTI3/5camF2UPoNq4nQ8m+AMMcWOrr0gzQYYzZU1x1wu DIDpKXutLDNaJ26ztRspMacr+gmI2CMW5DV6W9ZokxfBStlVmXRMlavrW1vxeY88TSBY e7hBlKiwtPt1bbLhtW6/tJgRHAKZ6KnJlNWkJcL7z/liy2RAjAYK6joK0LrDoCGOJA2N Qkaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=04JCRIn2A2uM+XKOefMedVbd20gF+M1AmjWrC8tqmnU=; b=eRVQzK2BFRmt0tmi3PLP5GvmvhTGmJA166j7tUiLWtWjzMhaviElPvUTqOLXBefTWl VU307JmvRSQ2uEjXxUAEVruFbwiFyT5EX5i0rRYLUnHoQlNZukzppZFksMEABgcx7Jgg UgbXBNXFPmTyOFSEQEf5GZKQwJQgUkkHlyv25z/LuFpRdLDGedyuwx3yd1/E/pjCGAaP khsnhhAk2znMIbeu/1GHNdqVQFfWCECeHK+MGwTEW20A5hNNI4Vqg7mkSCviT2MrJUnw vBfZAi5VihszpEinctYHaGJlFjSPvBtzv5zUTUafqdOQTRGQLqYS5tf4N7sFy37dPmye QMWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si2588629pfo.248.2021.10.23.21.27.31; Sat, 23 Oct 2021 21:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbhJXE0j (ORCPT + 99 others); Sun, 24 Oct 2021 00:26:39 -0400 Received: from angie.orcam.me.uk ([78.133.224.34]:34370 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbhJXE0i (ORCPT ); Sun, 24 Oct 2021 00:26:38 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2A78B92009C; Sun, 24 Oct 2021 06:24:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 1C80092009B; Sun, 24 Oct 2021 06:24:17 +0200 (CEST) Date: Sun, 24 Oct 2021 06:24:17 +0200 (CEST) From: "Maciej W. Rozycki" To: "Eric W. Biederman" cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Linus Torvalds , Oleg Nesterov , Al Viro , Kees Cook , Thomas Bogendoerfer , linux-mips@vger.kernel.org Subject: Re: [PATCH 05/20] signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT In-Reply-To: <20211020174406.17889-5-ebiederm@xmission.com> Message-ID: References: <87y26nmwkb.fsf@disp2133> <20211020174406.17889-5-ebiederm@xmission.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Oct 2021, Eric W. Biederman wrote: > When an instruction to save or restore a register from the stack fails > in _save_fp_context or _restore_fp_context return with -EFAULT. This > change was made to r2300_fpu.S[1] but it looks like it got lost with > the introduction of EX2[2]. This is also what the other implementation > of _save_fp_context and _restore_fp_context in r4k_fpu.S does, and > what is needed for the callers to be able to handle the error. Umm, right, good catch, thanks! I think this ought to be backported. Acked-by: Maciej W. Rozycki Maciej