Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2463485yba; Mon, 15 Apr 2019 12:10:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8OaGnKwvMEN+Fc6o9vGSJi3yEaO77KQOscWUdxjTccr+hdQ/e2eMovDiOPBJwXUUPuu+b X-Received: by 2002:aa7:920b:: with SMTP id 11mr77482425pfo.3.1555355440291; Mon, 15 Apr 2019 12:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555355440; cv=none; d=google.com; s=arc-20160816; b=mjo61iNAzMaUiwEFTULdwdZI4enO8hoE+aHM0sJ2zEcXLPy8HBSzwYaXxD6j6gLxpS Ysq0x6uR3eb5ARLN6ec2nCwDnqnph8IPzzWqHym8QnKG1oL+5hCj8RvMwrlZWA7+Jv/a CxBKLC7U/t4EuL83+1D85tSdBgAggkq04kGbOniydmUHlO4gj/lX7ZHXdcHPjuiPoeAq QIbwTMILm+v74iM9a7UkezENLBDK6f8Ho8USeGEX2AcMzE+i2th9n/jC8OXZ+8vNjc5P BQNrl5EL1DaWdtesK/JHIyBiTlfHfuh8uzf3Ude/F9tn/tfgzVWKHufwbWHMvEVk9IpV sZsg== 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=8KcAYyEb1/jZAiNvuY7bscrJZE/Mas68YwxjV4IhCms=; b=VA5q9oTnnl716jaxFBnxZ5ZOqfiaWyvweOZfKVlUOjzv0gz6xgx2B9nURjK0YhcW9J pBcrxhuJ+e98uBtzTIsbFCn9r0b6LM9lssJaKnveGB3LTgRzDLomuDS8DCtKle1QoMd7 OFrAIqPGtClOKYYe7pA11lYhgbh8ihSK5CmFbKeZOVJrzRlhBw8giNeQhGeoN+AsnPTJ a1lKdpljD0orfa1ZIStjlLO2LGvcuPJCfOW37UQa6KFJHfaSHkYTbuniVfzyHIVw6peM Zdzwm9s5hwKG5coIHbI6ckMwZLcakphvkRvlLsyg9J85E7LHCwbJEpueN7bUpy4wpDLY VHMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OgeomhnS; 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 b17si48559878pfj.200.2019.04.15.12.10.24; Mon, 15 Apr 2019 12:10:40 -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=OgeomhnS; 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 S1728252AbfDOTIB (ORCPT + 99 others); Mon, 15 Apr 2019 15:08:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:43084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730336AbfDOTH4 (ORCPT ); Mon, 15 Apr 2019 15:07:56 -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 D7CF6218A1; Mon, 15 Apr 2019 19:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355276; bh=Qp5m+y5f4JqSzO5Ap/rSF/9E2Y4DP0dE6YDjItcgY9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OgeomhnS/maext+2DJLZQJd5DJqG03vLbUlGlGIzF5mWQMaztcT+oK+L+z5umFXBl 04Img6rGxfWdZWGDDNWQ1HlFK5aF6qwVG+qXByvbFhtgbXUmMdfdgVlPl9cFpIE3M9 GeKCoU3fM76o6iZHngpUfCH/9/OFBT3hDZZ6ndJw= 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 057/101] parisc: regs_return_value() should return gpr28 Date: Mon, 15 Apr 2019 20:58:55 +0200 Message-Id: <20190415183743.531972846@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 45efd871bf0a47648f119d1b41467f70484de5bc upstream. While working on kretprobes for PA-RISC I was wondering while the kprobes sanity test always fails on kretprobes. This is caused by returning gpr20 instead of gpr28. Signed-off-by: Sven Schnelle Signed-off-by: Helge Deller Cc: stable@vger.kernel.org # 4.14+ Signed-off-by: Greg Kroah-Hartman --- arch/parisc/include/asm/ptrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/parisc/include/asm/ptrace.h +++ b/arch/parisc/include/asm/ptrace.h @@ -22,7 +22,7 @@ unsigned long profile_pc(struct pt_regs static inline unsigned long regs_return_value(struct pt_regs *regs) { - return regs->gr[20]; + return regs->gr[28]; } static inline void instruction_pointer_set(struct pt_regs *regs,