Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp803035pxb; Thu, 23 Sep 2021 10:52:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd0rTiRt/gKZkUKtL7x7K5y6PSY7DEFqh1m+a/W66s6WlHEMLC+P60GmOjfqvK9agTTRNx X-Received: by 2002:a02:8804:: with SMTP id r4mr5184198jai.55.1632419523855; Thu, 23 Sep 2021 10:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632419523; cv=none; d=google.com; s=arc-20160816; b=0yU4UGv/eJ/daWQiEN61QYv+kjBH6i11MXJznx1qbNlVzE25CgoRwUBdiyTEAFp70g 666RAi/dH34vBeLAPKO1qQ7HCY+jOc9zcnmXyAUldtiKnMYreyJgF4Os+q29NOFVh7UN yUsmUiCXtEuPc0j3GKpnF6EBivcf9x8KKw6fQGRaxBN8AIRuRZYcn+MBpqRztLdmP6FW vWoP1suTlEeB990zE3bXAAqo7w2leXccq4vka42Il33OuWeS3N0W9qf+7hX2DzALRp/X QN+0UUqr3fu+reVvXpMbaBfdQo33Byk9EH5m4bHcdnp90omFhJxntjx6rp8knYZWm3oW gsRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9lKUe9XcsySJqTHgLI4y/Q40rKS7wS5eG4qN8QMgDGk=; b=VIpmOuxsICzTDy7WurAwfVZPt+D06r4hW28i+wId4AAV0sm/exnIJIzvR/Vw+zosxX +9i4yW19i6u8nAn0sS0oRR7vPS1YPY8IMhUJqrWkv++xjIKrP3LARR1t4Bjr+7ggb3mr JXFO2p88Cj2XreFUH2h9gmaBYI6sOBoqW8xQtdoOrn750i7Tdc9eCgbIIN9jnaqeS0zG zIqk0Ksxnt/nGDtFMNh9y61lI2+uSz9C8NyLS3qPg2lWaiJK3wDPFdVyRZrG8AmtKpSq 0m+UPvV1ZsAHspVLsUxx7izTBPPDWnMJQx5nX36LRCmVIHbVyRl2KVCBKCcCazhvnh7S aI9w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si7444728jaj.107.2021.09.23.10.51.50; Thu, 23 Sep 2021 10:52:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242198AbhIWRvB (ORCPT + 99 others); Thu, 23 Sep 2021 13:51:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239489AbhIWRvA (ORCPT ); Thu, 23 Sep 2021 13:51:00 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82893C061574 for ; Thu, 23 Sep 2021 10:49:28 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id DA8B81F411C5 Subject: Re: [PATCH] x86/fpu/signal: save_xstate_epilog: fix return polarity To: Anders Roxell , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Remi Duraffort , Nick Desaulniers , andrew.cooper3@citrix.com, "kernelci-results@groups.io" References: <20210922200901.1823741-1-anders.roxell@linaro.org> From: Guillaume Tucker Message-ID: <2b9a6fd8-0e54-059c-aeb1-c08cb2b8804d@collabora.com> Date: Thu, 23 Sep 2021 18:49:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20210922200901.1823741-1-anders.roxell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/09/2021 21:09, Anders Roxell wrote: > Fix the missing return code polarity in function 'save_xstate_epilog()'. > > Reported-by: Remi Duraffort > Fixes: a2a8fd9a3efd ("x86/fpu/signal: Change return code of restore_fpregs_from_user() to boolean") > Tested-by: Nick Desaulniers > Link: https://github.com/ClangBuiltLinux/linux/issues/1461 > Signed-off-by: Anders Roxell > Cc: andrew.cooper3@citrix.com > --- > arch/x86/kernel/fpu/signal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/fpu/signal.c b/arch/x86/kernel/fpu/signal.c > index 68f03da2012e..39c7bae97daf 100644 > --- a/arch/x86/kernel/fpu/signal.c > +++ b/arch/x86/kernel/fpu/signal.c > @@ -106,7 +106,7 @@ static inline bool save_xstate_epilog(void __user *buf, int ia32_frame) > err = __copy_to_user(&x->i387.sw_reserved, sw_bytes, sizeof(*sw_bytes)); > > if (!use_xsave()) > - return err; > + return !err; > > err |= __put_user(FP_XSTATE_MAGIC2, > (__u32 __user *)(buf + fpu_user_xstate_size)); > This patch has probably been applied already, but since the issue got bisected and then the fix was verified by KernelCI: Tested-by: "kernelci.org bot" For the record, see more details about it here: https://github.com/kernelci/kernelci-project/issues/53 Best wishes, Guillaume