Received: by 10.192.165.148 with SMTP id m20csp2526950imm; Sun, 22 Apr 2018 08:53:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+fn34eFLeDS3PcAzupCl7tw+a+rynkvrEdb9l+Qq81Ki2sTE/F/wRFryGzo6YXqcCIEjwe X-Received: by 10.99.104.9 with SMTP id d9mr14535506pgc.304.1524412435068; Sun, 22 Apr 2018 08:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524412435; cv=none; d=google.com; s=arc-20160816; b=r5wtQOURkf53PJjYrAI7HVCIIQq6wTyNytwu2iFi3YsUrKbyGsuO7Wng1g5AZXQ3V4 VfPBq0rQNHgcbSw1kngu7AAujf2Mv2UTRweHPdGEOD4x2P+lBOY5Tcc8LLNzvmmY5Om5 bcjzibo8h8c7PkH9VLNtDGhh23CViNdJOubEMIQml/9/9bvMaOyiF+UnQryM9H2Ns1g3 Zfk/iFOGKgnlfBzVpTohfYKbPXIvehujTh2uLrlOyPK6OkwizFPgaMLRJleGTPZBJ+W6 p/lMXAefUhGRQUyvkuqmxO6d5GzP9ZCWH2fTPj8NKargj3D3dNVRZLgiOwL6xkg0Qxwa VGGw== 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=5vAWAiX4FUOEqOTEUagqTnlCqrUTmia4QeUMrmiRiAI=; b=Fh39r7KxjtJLT4fC96ga9U1C4y/j6DnMSnLhR5OJvAgAXXjarM/tsLWyHiK376ZboX UgP9+A/6LJ8sHieO/z33+bpWK6kEH6/z4FKRInKJWTI39jE8gsjLtqn+ARNg2r3rDOiZ ntdWApESC0X2W71iw+DPGVlz3AqVxqxyQwwPMk0FJ+VyWNK4PVdpEIi3Z7BbyR17XW2A RxZi2LFO21lIXoAXQE7KSaE1N/xafsR4K14+d8k5VN3PiqaT6OWPxzx33SRWvcsZvERD epOkilMv0v50xou6beHkIQd/ha0zmg938qm421trmcjGwopqabN5e1BzDR0ZxqrkJHM6 gikg== 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 g4si8143295pgv.681.2018.04.22.08.53.41; Sun, 22 Apr 2018 08:53:55 -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; 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 S1754698AbeDVPw1 (ORCPT + 99 others); Sun, 22 Apr 2018 11:52:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47424 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754253AbeDVOA3 (ORCPT ); Sun, 22 Apr 2018 10:00:29 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C5D37C24; Sun, 22 Apr 2018 14:00:28 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , Kees Cook , Ravi Bangoria , "Steven Rostedt (VMware)" Subject: [PATCH 4.16 137/196] trace_uprobe: Use %lx to display offset Date: Sun, 22 Apr 2018 15:52:37 +0200 Message-Id: <20180422135111.330525700@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135104.278511750@linuxfoundation.org> References: <20180422135104.278511750@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.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ravi Bangoria commit 18d45b11d96e6f9b3814960a1394083a3d6b7f74 upstream. tu->offset is unsigned long, not a pointer, thus %lx should be used to print it, not the %px. Link: http://lkml.kernel.org/r/20180315082756.9050-1-ravi.bangoria@linux.vnet.ibm.com Cc: stable@vger.kernel.org Acked-by: Masami Hiramatsu Fixes: 0e4d819d0893 ("trace_uprobe: Display correct offset in uprobe_events") Suggested-by: Kees Cook 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%px", (void *)tu->offset); + seq_printf(m, "0x%0*lx", (int)(sizeof(void *) * 2), tu->offset); } else { switch (sizeof(void *)) { case 4: