Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2458225yba; Mon, 15 Apr 2019 12:04:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeG4WGIB9U5DvhiRVsZlQzMoD/vA7rcf/8wZFcmYpn3XjyPsUEDt3lCb+OzwBJWyhDMDkO X-Received: by 2002:aa7:8384:: with SMTP id u4mr76919121pfm.214.1555355076573; Mon, 15 Apr 2019 12:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555355076; cv=none; d=google.com; s=arc-20160816; b=ATdni/LhIrcsIdD9DGCwOb8kncEkohlEPRSqugHnlyzbxRCh65NzP5kaRy5s7l7nwB gyNikeAEY6npLN3hZ4dHFy6QFu2/k6vH+Gq2Xo+5VgUz7LWZKI0qpCAlpQrHsAsY087G N2MQ2CeeauWw7iDiKjt68d+MPw63De64KS7Emr03FEpASugCpAPBnIrNurTGON+ZlEyc jkq+MUQcY7fAQGh9RX9amfbSmTEJPHSaa+S38Zg3w+zydJmUAv17nFVQYcnNt1ZhTp0+ mi4RvP3TBzhRd+GMGOCf8XL3dV22r6e1tDjwAETTo0lKjFk8GVimqX58OBfTdFFfeYzn IDlA== 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=ThTmwjbza7zEvPxEeIY1IT5UvZky7T0G1dZbHDxW17M=; b=wsAYfai41wNiPjhBuKDoZ3Zcm3wHx27tRi5eOVpdKG+da6McUPvUHFmjyt5mEwZDkr r/G1Gq9UGd7SF1FOy4pxPsaxHGbUUJjKRKhs/0XNJVImHG1HigaY1eAqqAhTfeXY+J0C zs8n+WhM5Bisgby04gREESi9VO3EPYaX4cGFnehPZ22Wt1uAiiEQC5+7FauI79VDmE2d NURRlJ2UBzIjCoqMno5xxYmuh3RxofECMuFrPe4yvBRXNAcCSMNaolx+L3EmwBB3Y75S FSWJZTGnwdJ8dfbvkwf2aJ2ybGcuSBR82gMsh6ceJJpawrrBPR4B6hSO5f+PK0aqgkyc Po7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S0jDjjmo; 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 n69si13851151pfb.256.2019.04.15.12.04.20; Mon, 15 Apr 2019 12:04:36 -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=S0jDjjmo; 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 S1729157AbfDOTDM (ORCPT + 99 others); Mon, 15 Apr 2019 15:03:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:34792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729128AbfDOTDK (ORCPT ); Mon, 15 Apr 2019 15:03:10 -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 D641020880; Mon, 15 Apr 2019 19:03:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555354990; bh=MBQXCTXMfSuX6BsaubJcXwuG1ldzX//Oq/c7ffeG/Bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S0jDjjmoVGblMTdKSfdN9K6RP1/6RA78SWSfEDFP9n26OFIRUY6loD0uhwMl/PiIy h/+u4NrRNa1tizHkwZ06YQnomaZ4aQxg6BzN24x9O4lkfmOHW0QeeQX9imRiqPV5ce n20vGBUEJskpf0tzqplwEtnto0qawczk4XzCa65Y= 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.14 41/69] parisc: regs_return_value() should return gpr28 Date: Mon, 15 Apr 2019 20:58:59 +0200 Message-Id: <20190415183732.777623370@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183726.036654568@linuxfoundation.org> References: <20190415183726.036654568@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]; } #endif