Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3504275rwa; Tue, 23 Aug 2022 05:59:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR58IUkciFzqagP8Lcjj0OJIOIjEdzlVoFIlFNKxyAIdgNwjFSkqdO6HLwNRk7H9BmBnRpmH X-Received: by 2002:a05:6a02:208:b0:41d:b01:db6d with SMTP id bh8-20020a056a02020800b0041d0b01db6dmr20989476pgb.252.1661259596047; Tue, 23 Aug 2022 05:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661259596; cv=none; d=google.com; s=arc-20160816; b=FcBm2lLLqkLPO6Pa7P805HQTHloPyw8cHi4D0pedaUTYothIuGdHdnWjQGReiADmeT EMwGuLBwkotN6e8uc8sVgkNGZGr6A1NL4duxZ017mV6tqMC24zPbp/XQSUXyYauFbgyv 76NF3/c5/HEvVIXi7qe6ln01smueDEbF5wDywHYyG8MTc7PKhZIEpOF6Y7Sp5tDvpXIJ Cp8kw5Pw3tQnyh6TVM31lGmsMii/Q5wnJl6xC8F78jfyo5yT+4k/e7LD3YPXPV4YYRet yr+MYPihORDqAj8/HWjtQud4zgx5e+8aAo4+uJuxs8+BrmelottGKARdDI+L+KO6joy2 sVDA== 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=p47K7EjRLzT3NBR09M/VXGf6zrtm8Bw9vPx9d6k0kheuD9YHDz3hw198DeUz52nI11 YP1sGBpuKcJ97tyC4FDeK79WCyYy+L785M9wylLJ9eHhsRF5ks00iAC2XhfAvX6JeStS BZlEITXljuvwRcv3M7gEoSRQBgM9dfLtVd8uQ+dFRAtFZV0D+UYGwbWUtCkNPPaygkct AAh+aU7XT14HvpRxn4S6ku0y8Zkf0xC/yIgNocvcVXEUPhd2k/AgE4+KeXjQO0DPZB3T jOurHXS7wsFeM4VPhorrtuAiiWfoedJ8OcQ6KuPzc4nizB/OFJZthUf9ts0Oaf3Kxqq4 bIDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QupQEscY; 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 p1-20020a170902ebc100b00172ee0652e3si5182063plg.283.2022.08.23.05.59.45; Tue, 23 Aug 2022 05:59:56 -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=QupQEscY; 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 S1359090AbiHWL7M (ORCPT + 99 others); Tue, 23 Aug 2022 07:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359266AbiHWL4a (ORCPT ); Tue, 23 Aug 2022 07:56:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E30CC844C4; Tue, 23 Aug 2022 02:34:05 -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 D83286146E; Tue, 23 Aug 2022 09:34:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D84E7C433C1; Tue, 23 Aug 2022 09:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661247244; bh=fy9Hbiarz6gfSjxp30zSLiolvV9NwPqMSdgxPIu22Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QupQEscY90MmE3zSGsSq54TdzggXwFSXQyfHMTtgZk8GrHdW3p1BvgqJLTF0V2ccF MC4FR1inkjUdtpgxjyTdylE4bNvPccc7/HocMGXdhQHSbp6JgCbCYYjuhobGaYN76U 4RqqnWrrtOjDlhTGaWPhR/Z1ZdkqBraKngbsCWZ4= 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.4 333/389] nios2: restarts apply only to the first sigframe we build... Date: Tue, 23 Aug 2022 10:26:51 +0200 Message-Id: <20220823080129.426286082@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080115.331990024@linuxfoundation.org> References: <20220823080115.331990024@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)) {