Received: by 10.223.185.116 with SMTP id b49csp1024668wrg; Wed, 21 Feb 2018 10:45:52 -0800 (PST) X-Google-Smtp-Source: AH8x226pRljlPvtG0XepbW6Y24+elMaVAo2DGW9tVpe8B6mN8UQCn+zvUKYtbjsZXXeBi2J4LJxG X-Received: by 10.98.63.147 with SMTP id z19mr4121387pfj.221.1519238752001; Wed, 21 Feb 2018 10:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519238751; cv=none; d=google.com; s=arc-20160816; b=ZrAeSdk/c07XtEQKI3Ybe2hrxYmnIvVATISj1uLpM8ISoKfWmF8aEKlb8Px4zQc2ty nMCWpb0mfyJXnvAi+kWIq1OmdYvZ96DRpaYeheK2YpiI3aC8KthIf84miiDVReIZcWx/ 9TfH4I0O67jNiiBr2w46+InNaLIbO0PbLkZz7eChNqVYL9pCinj5xuJBkaMfoDYaoRqB fl1HipTcpbZMKCVUkXI8cGBGGqhDaOzMnIcSbRHA5rlrqYY7EdCDIZaQuzsVM52ZBUKE ostVZ5cOpHNUIfC0/vGizfbjBxjSOu+XXAftP/A0LMBCINgAB8qtV8TipZO1LjVeDEWX u88g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ryKBaoZW18KvZ4+xzw41s+UkRnQ/PgyW+Wr6dGDN80o=; b=WdzBDN/Sf6gi6JMzrUu0NYP16hADcjOhnhsOUoQer6Ww1paieNw8W3syvoCuG9DjXf mVPVxDcIP3WhLoxiyg7H7u0cNDnB1qLcNxxzf9GVNyfeGWCLyDP5ZexE5HjIIShgtTr7 LLVLFVZaQ9VMg2I1pu7r3VHOwM2IXxPYD3pA+Oj6wQ8GqBfKs/RQ96Xm+vJtRnYrGtU3 dXKwRQ7YiVnM3utd1Z2GEvhK+0zLOii3wnfzVnqvM4GR7+aFZCLH4OX3mgmYRDjagFGa N0NJ82FlQvdJO9ZOuKcJPCpELVMjCQMGnmPRp5/4Em5E0qIoXinCzuxe0E3a51ikoeRo OUog== ARC-Authentication-Results: i=1; mx.google.com; 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 b65si1530275pfk.283.2018.02.21.10.45.38; Wed, 21 Feb 2018 10:45:51 -0800 (PST) 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; 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 S937075AbeBUNj3 (ORCPT + 99 others); Wed, 21 Feb 2018 08:39:29 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936104AbeBUNIW (ORCPT ); Wed, 21 Feb 2018 08:08:22 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 142DF1060; Wed, 21 Feb 2018 13:08:21 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srikar Dronamraju , Ravi Bangoria , "Steven Rostedt (VMware)" Subject: [PATCH 4.15 018/163] trace_uprobe: Display correct offset in uprobe_events Date: Wed, 21 Feb 2018 13:47:27 +0100 Message-Id: <20180221124531.133282347@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ravi Bangoria commit 0e4d819d0893dc043ea7b7cb6baf4be1e310bd96 upstream. Recently, how the pointers being printed with %p has been changed by commit ad67b74d2469 ("printk: hash addresses printed with %p"). This is causing a regression while showing offset in the uprobe_events file. Instead of %p, use %px to display offset. Before patch: # perf probe -vv -x /tmp/a.out main Opening /sys/kernel/debug/tracing//uprobe_events write=1 Writing event: p:probe_a/main /tmp/a.out:0x58c # cat /sys/kernel/debug/tracing/uprobe_events p:probe_a/main /tmp/a.out:0x0000000049a0f352 After patch: # cat /sys/kernel/debug/tracing/uprobe_events p:probe_a/main /tmp/a.out:0x000000000000058c Link: http://lkml.kernel.org/r/20180106054246.15375-1-ravi.bangoria@linux.vnet.ibm.com Cc: stable@vger.kernel.org Fixes: ad67b74d2469 ("printk: hash addresses printed with %p") Acked-by: Srikar Dronamraju Signed-off-by: Ravi Bangoria Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Greg Kroah-Hartman --- kernel/trace/trace_uprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c @@ -608,7 +608,7 @@ static int probes_seq_show(struct seq_fi /* Don't print "0x (null)" when offset is 0 */ if (tu->offset) { - seq_printf(m, "0x%p", (void *)tu->offset); + seq_printf(m, "0x%px", (void *)tu->offset); } else { switch (sizeof(void *)) { case 4: