Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3395084rwa; Tue, 23 Aug 2022 04:11:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR5/VV7lAui3tn02SDSzcOeHBEV82SkhLeRgzQjKNvrMdjNxeX3qTbmdYgoZ/zWqSZfbZ/tw X-Received: by 2002:a17:906:98d5:b0:738:3402:197 with SMTP id zd21-20020a17090698d500b0073834020197mr15523414ejb.581.1661253074206; Tue, 23 Aug 2022 04:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253074; cv=none; d=google.com; s=arc-20160816; b=sdPsZ4uZsd5uL2sI1+8/axyMYtGPUdAblwlQugaZkots6u/pv4WyiXNyn+2V5ERz/T EEtEvwVVC7o6qXv8ubLkNTsqkI+QRhMZf0xR1A5Nv8QQ9eoPTmQt3YbOByOUo5oXMtZW znaxo+G9eN6hxf4hl0BjquZYpHM/PZ37UKVwoEw6H6pHMmE/dxWGZ886YR5YnDnF4E/B TaxkBr8fBOS7R7cMCfy7oNzmFiT1TXLwJWWHlj4BldPCsw+XnjhjSH/XV8749WE1q3Py 5NxVHOgh4ifnw/rYffmAwK/o7AmbZe94ZRboq5gHyfmI9EC+BE6JAIAHebuo5XqoYjaB ZCkQ== 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=e1Go58aWFJnt0Vj4kEAQ+D+xPWydu4BbeidH99m9lHo=; b=0SG76E04TqSL5S80DxEDgNXkJs90HI/6bpqPqEkKsxRpXolP+wihFHZUPNugS88sgY ilaz2LWmBRtb4CWY2O4qrTRtWdEa2pkW4iZ2JKmo9asUHbAyx6P93D3AVfHXl+2ywU5e fGcUvnM70ElbBCJtwQCbi5BP3Os+quoeebEbm48MQ/6w+OQn90/JzedK8EEKiEazvDN3 GcqmDcTvygswnZpryhzvYnLpK66KYI1BH7j0F2QyKoUgQvpi3ApBtqgPDRMObQn5fDBZ yKn46mEQN+XRG5h6d9UoEcLQZIHuEo06d8CJY04HdZC1fDGWln4aZFZrwF3Xj3z4YA1s ewBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S8CIR7ln; 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 hs7-20020a1709073e8700b0073da49c06a2si972310ejc.948.2022.08.23.04.10.46; Tue, 23 Aug 2022 04:11:14 -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=S8CIR7ln; 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 S1357057AbiHWK4W (ORCPT + 99 others); Tue, 23 Aug 2022 06:56:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356953AbiHWKwr (ORCPT ); Tue, 23 Aug 2022 06:52:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F08CABD49; Tue, 23 Aug 2022 02:12:53 -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 ams.source.kernel.org (Postfix) with ESMTPS id 10772B81C88; Tue, 23 Aug 2022 09:12:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B7B1C433B5; Tue, 23 Aug 2022 09:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245969; bh=fy9Hbiarz6gfSjxp30zSLiolvV9NwPqMSdgxPIu22Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S8CIR7ln1k86wYiPUvcb+vpD0Pl+vkuxPMqekDmyFYhYHtq7VPkYB2Hl+5oFkjjbp 9P1pAk2sNLHOkeFN5Kcf/UGVAx5VAMBZeU8UhXuYbTberHU+x2ToUhMl/78GuQHx+l eXKkuzl893qq10PEi9xemu/LDDH9sArVBZe3KdAk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro , Dinh Nguyen Subject: [PATCH 4.19 248/287] nios2: restarts apply only to the first sigframe we build... Date: Tue, 23 Aug 2022 10:26:57 +0200 Message-Id: <20220823080109.514944814@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 @@ -261,6 +261,7 @@ static int do_signal(struct pt_regs *reg regs->ea = restart_addr; break; } + regs->orig_r2 = -1; } if (get_signal(&ksig)) {