From nobody Thu Dec 18 13:08:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF7ADC38145 for ; Tue, 23 Aug 2022 09:13:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348895AbiHWJN2 (ORCPT ); Tue, 23 Aug 2022 05:13:28 -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-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =3D restart_addr; break; } + regs->orig_r2 =3D -1; } =20 if (get_signal(&ksig)) {