Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2523993yba; Mon, 15 Apr 2019 13:32:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYXpBFer+myoKPcFeli8zRfjseFdjP49A8wk4R3SRPSBjRz/ZdVAkhtcSg+waq0Edtm9QM X-Received: by 2002:a17:902:778a:: with SMTP id o10mr66076269pll.135.1555360363541; Mon, 15 Apr 2019 13:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555360363; cv=none; d=google.com; s=arc-20160816; b=hudiASyBVIbWEs/IuiQ3HfnoiRvorknFGmWcqLB9vsfn7a322DpdW1bluxB9nZ/BGL d8v8pAOrwjTIJaEIODifLPD9Qp1obP3cNp3mDL9ROv8NP0zCJFpBVbU0ag1yOn+wVIsb YDlMxi2C/CqRckai7VcLPXMpH7ymH0L4Vc6GzGOXD23QxorUn2vb0wLV7qLocMUvwbCe PDGAMAPG1LmYdUjejSSzIDWCM1nMcH1n/O5CFxZblIYAqtz2COT0rwxkuIhqk5ybjkhh FcSThv9VIRt3OHAknrLEEcK76XGW2hzfdIeElVNFpdqUc3hu5GTZeRs8RN40xRMQV9cb yxUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=azlzCwguPY2OMVntZ3+qa7pivNLjDBjGl6lcHmDpOI4=; b=vCw8W0O0lWgpD5Lw14aUEff/D+wSqPyIzkjUbGpSsnohlISmXOT14hVfSIJRQaPAfC ME0ry9KTABlwgEmY/iytJJF7xyFZwEPRCb+vw8ClQpFYGb7gpERxW5oKbXFtDIrGTfUO 9tI9C6i9Yz3YfYAPj72FQyBCDkBcBcbQD142mcAgxCNEEwcWciE4/Zp1kKrik3GH1ix+ 78kR5peZFmOqI+SxHpnJpDP2PhUyg5nvIKp2FzMbOeYFgzvpr9GOfInmiyv6trvVEof0 NUC52wOcloa8kxj7bMsjJ/7OTAAQEdgvCcG0s/MFnFXt2eK2CPC6BoftY2ZCmXx2+31/ GQfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A0Bmw2o9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si31099591pgg.573.2019.04.15.13.32.26; Mon, 15 Apr 2019 13:32:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A0Bmw2o9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730972AbfDOTWp (ORCPT + 99 others); Mon, 15 Apr 2019 15:22:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:43144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730322AbfDOTH7 (ORCPT ); Mon, 15 Apr 2019 15:07:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6CE93218DA; Mon, 15 Apr 2019 19:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355278; bh=Z+zRC5mWqOWSLREDEnOJhPZv1KKEsZuKcPJ2BElwfcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A0Bmw2o9QmV/ltVXIZh3F0tpXwu4rMbdA1dk2AuEz5nWJazX3MQ6JQoRq5A8GS9zk fMo/iOX6EORf3I7Wh5nDEhE4CJpKecrw9mpmR+X1dpeGg/AgiXloIvaVie//6yLtMb GjEb/sFytEOsBqsd9dS0fCewSdQx0OAyb54hkA1A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sven Schnelle , Helge Deller Subject: [PATCH 4.19 058/101] parisc: also set iaoq_b in instruction_pointer_set() Date: Mon, 15 Apr 2019 20:58:56 +0200 Message-Id: <20190415183743.579799341@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183740.341577907@linuxfoundation.org> References: <20190415183740.341577907@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sven Schnelle commit f324fa58327791b2696628b31480e7e21c745706 upstream. When setting the instruction pointer on PA-RISC we also need to set the back of the instruction queue to the new offset, otherwise we will execute on instruction from the new location, and jumping back to the old location stored in iaoq_b. Signed-off-by: Sven Schnelle Signed-off-by: Helge Deller Fixes: 75ebedf1d263 ("parisc: Add HAVE_REGS_AND_STACK_ACCESS_API feature") Cc: stable@vger.kernel.org # 4.19+ Signed-off-by: Greg Kroah-Hartman --- arch/parisc/include/asm/ptrace.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/parisc/include/asm/ptrace.h +++ b/arch/parisc/include/asm/ptrace.h @@ -28,7 +28,8 @@ static inline unsigned long regs_return_ static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { - regs->iaoq[0] = val; + regs->iaoq[0] = val; + regs->iaoq[1] = val + 4; } /* Query offset/name of register from its name/offset */