Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3473482rwa; Tue, 23 Aug 2022 05:28:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR4r9Fl/RfNBkMalEy5HI764grGAaHK1n7jkIlekvCOK3HLvpEMg2XbaoVvxl+XUiubOWwTO X-Received: by 2002:a05:6402:42ca:b0:446:8f11:3b96 with SMTP id i10-20020a05640242ca00b004468f113b96mr3486411edc.353.1661257683156; Tue, 23 Aug 2022 05:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661257683; cv=none; d=google.com; s=arc-20160816; b=kSjJ8d597GOufaJ/mUyyNR0bfXrnyZGk2tOd26/6QzYkuJegqUGD3+2R4iHhyvYYUL 3UDtSawNG/JRVp3aMYMGpKIirxsy/XDI6TWpm0eiWpkCyUCSkle0kFIusoeQefymZFHm 6ypK+sRlXxWQCiOARVhHCN+MtlwZwUOcraLKv0HFz7Ik5JroSzaUAz45V2IdxsV5pCvk FTY/4LyMLkEba2bik6RCRETnZvIBAsZ4Njpfon15voEqEZVuyPiLumiellvBNnOW4At1 GpzbFbaEmynkXv/IqwOhmzIjQYSPPapcjQ9Sc/feKORyaZyBvTrGfgotiJhmlVnhg+l/ jAZw== 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=k+d6OfWDdAM1OUsHefM+TPOYSYWnufhEVOcXoOzMoKOwLWPP9asQWGp/i39DXdvIvO 8IZxC/1Ugv2JOMw1CbQ5j83yA9aMu6UfUK6WbSy+a/umVPWNxDyhv+6kbYM2TavSy0r1 /9w8n50kJ7Gurw3G6Ep1w/RSN94D/zm/enR2Z9Yv4JYj98OAyNuClDIeJfO/IGCXD7EE rYUQuN/1VaKTTEHmsrxG+iRYZlYDx1IwZw1MgkKyfn5RVp9/EQ5CJgMpV5eCES3NAS4v lr7R1xFem03K0OHbtMcJSAK1y00kyu6rzM2bzIdg1m3r8zunbKUxXnzGOIjcv+qu0XaD xPug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SaOSsC4f; 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 hq21-20020a1709073f1500b0073d6ad8251asi7516316ejc.812.2022.08.23.05.27.37; Tue, 23 Aug 2022 05:28:03 -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=SaOSsC4f; 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 S1353582AbiHWKR5 (ORCPT + 99 others); Tue, 23 Aug 2022 06:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352403AbiHWKHc (ORCPT ); Tue, 23 Aug 2022 06:07:32 -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 AD4F657542; Tue, 23 Aug 2022 01:54:10 -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 47CF7B81C35; Tue, 23 Aug 2022 08:54:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6888C433D7; Tue, 23 Aug 2022 08:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244848; bh=fy9Hbiarz6gfSjxp30zSLiolvV9NwPqMSdgxPIu22Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SaOSsC4fQNpa8SDVKnoDIjfJ/4Ux3h56f28Q62b0sUxBbvW/tYH7colvQ00zJySHg i/ZFhD4PxZFr1WLI3jIA6povl59yX8M7jZADGvdaQTsJdqOowcJVcOZFRc/HslhDhh 2l+tCbzAwE0CI4+ugk4oS19TLQxNgH7Vs8J5PmXA= 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.14 201/229] nios2: restarts apply only to the first sigframe we build... Date: Tue, 23 Aug 2022 10:26:02 +0200 Message-Id: <20220823080100.819429975@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080053.202747790@linuxfoundation.org> References: <20220823080053.202747790@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)) {