Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3299516rwa; Tue, 23 Aug 2022 02:15:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR52YutBp7qvOdTt60tb2DE5sduC3/gC+VcrvTkY+5XK3eZ+LaTbeZOup+NGCbnDncXgKo7i X-Received: by 2002:a05:6402:248a:b0:440:9709:df09 with SMTP id q10-20020a056402248a00b004409709df09mr2851800eda.42.1661246154254; Tue, 23 Aug 2022 02:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661246154; cv=none; d=google.com; s=arc-20160816; b=eTQthnL1p07mXl0JGwmlrEArtU0RJSl71XdV71u+IP/nJVmjS36VDq/gRN8k8dqYLW FSbV+t1awiMpjiArYscePJ0oszr9hONA/9PTG+du420LRav4xhpzrY1iThQySW5dAY3U i1mex9/w56+5ab3EVC7mTuYUEyoKXefIojJ5FehbfNL0dq9UQb0h4pkeXVQNTi/RQgsr 37uMrVk3ZLrvzJvR1rT9ujzgG/nEFk3h1kyRL/nP0Cb0nVIf59I2TVHzLh3rYi7OJwCI HyUlPI7PgncagLI1XiAo6LWCtH31ffnbSkAANvVjs3nVoUxCpJRHJgYTHPlhmJ62Ypbg SDlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3pszEsG2ofYaCDhqF5CgVFASJm4Q9zi3ceUD8PTB0LA=; b=dVSsI5vX+Tt+bmdUx9aNpBmCL899DdAgyFMTLcNPPTvct4tNEUbVp34j1eFEZvZg7t wetYwNXNkTDPkIGjR7LQ7DH3ubwMc5dhVvvOm3gZFEbv+W9M9haL+g6mPCmxnAAmuQHs GyTiCftFCSMquMH+BNkrXcQSdSjFDkmyeKfXJTHbygx1yYcTwB2WfJXH1as0s4VoAfY9 6XzGzc9dN5yA3uIVAQU1Ekf5eeA1YllbXRYSX2KpeqY8/yC3w09fFhYrsTaQPAI3u2qL 8togc1xtIB0Wbnh/2IlyQ7P3dr+cBSQXrX27qYCc7U4dpQZpA62t0uvyahLktFg622z/ pdew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Kgl/0oIt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn35-20020a1709070d2300b0072642bbc8cfsi11273593ejc.914.2022.08.23.02.15.17; Tue, 23 Aug 2022 02:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Kgl/0oIt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348888AbiHWJN1 (ORCPT + 99 others); Tue, 23 Aug 2022 05:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348818AbiHWJKy (ORCPT ); Tue, 23 Aug 2022 05:10:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 455AC86B6F; Tue, 23 Aug 2022 01:31:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1BC0F61446; Tue, 23 Aug 2022 08:19:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24EE7C433C1; Tue, 23 Aug 2022 08:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661242797; bh=P8ClimO+H2U7s8xsr2RV/hjyQfg0HAP3IMy45wBgbco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kgl/0oItTYINb5LezDrpt+wP1Rf+Fg+/Cwax7JlJan72J7Uv9py0m8R/65zsGP2wc HYwx+ZNAE3Np/Dhfhxj7A6MK2dfOZJHT2rJ+5iEU6MachknOxmQxKmm2/FQ3DNy0nA JWDEUCPi2CYNqv/caqRbwFj+LbrHiSiiZGwBCu8s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro , Dinh Nguyen Subject: [PATCH 5.19 170/365] nios2: restarts apply only to the first sigframe we build... Date: Tue, 23 Aug 2022 10:01:11 +0200 Message-Id: <20220823080125.334084245@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro commit 411a76b7219555c55867466c82d70ce928d6c9e1 upstream. Fixes: b53e906d255d ("nios2: Signal handling support") Signed-off-by: Al Viro Signed-off-by: Dinh Nguyen Signed-off-by: Greg Kroah-Hartman --- arch/nios2/kernel/signal.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/nios2/kernel/signal.c +++ b/arch/nios2/kernel/signal.c @@ -264,6 +264,7 @@ static int do_signal(struct pt_regs *reg regs->ea = restart_addr; break; } + regs->orig_r2 = -1; } if (get_signal(&ksig)) {