Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3081840pxb; Tue, 19 Jan 2021 13:18:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBzmNefq6YFXaLJizRL4HZSqFO2lsV0qAWKZY/Z3u0yntmHlGdBaOmlxvfNM6+0L3njAMX X-Received: by 2002:a05:6402:318e:: with SMTP id di14mr4876060edb.223.1611091118682; Tue, 19 Jan 2021 13:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611091118; cv=none; d=google.com; s=arc-20160816; b=Sd2HukzSgi/+ZhrKmep3mwI8DEeXnVrSJ52DeuDLqxRjipJKMkKYrugaYeUQqCjIxA z8nzoKcDdQnLZ9FueShZJZYF4mZTARF3C9yD2QwkQTkk20ORJcrDhP8ZYor1mBZh52uz BtgEcnyby+kToi7HdkR3wW29PuFwhQBHTkcCPV+uBnnJZzuWZoIqeyVAc6NPgGHGOHMQ 7OYRdKpStNCMIhULao8PGHHecx5uBz+EJKd/znVTI+A5FFdmQMFvkFp5fWwBC29BceVj jlpBIH8JkZz/f+v2JV8CI4pDDNGPrOG2ZfkcF6eH9lU4Nljkif8P+W5UdhKS7IfQ9k8q DJMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=/GPVAbXwtw2MiudOfCqfxLCwmc24J/MN0iygW64hvY8=; b=r713WWzknwJ2VOTRuZAFjdoFPBoQlbD9A52h59XEfB6re39CYtKpCRB4AOJKGbtsYL t1H912vQgYv5PO/o+BP7d0vs8xbJwxiqVRhE4/YOz5zYlm1JNwW4YPpkr4InmnG/bbO9 U6vIea8uY5iUDKMKzr+RP9PzpXDHA68jT0L9NbFK9dQP+8DayyOuoL1/32/LPNQVFKQu 4cHw6amqRJ4N10wRXFpIsKAAm+Fjwmq950dqTfARpD9DPGpXXdey4ATodaFGRdQlRX/5 6S52+OLonnn+jVKd+AD1JJyTa0lCyn2PWQCch6M2piNj2f88C8FGnnPBTh3Cf4TKh6Ge KljQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc26si27926edb.508.2021.01.19.13.18.15; Tue, 19 Jan 2021 13:18:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729064AbhASVQj (ORCPT + 99 others); Tue, 19 Jan 2021 16:16:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:41872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731769AbhASVQJ (ORCPT ); Tue, 19 Jan 2021 16:16:09 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 5352122D08; Tue, 19 Jan 2021 21:15:26 +0000 (UTC) Date: Tue, 19 Jan 2021 16:15:24 -0500 From: Steven Rostedt To: Timur Tabi Cc: Kees Cook , Matthew Wilcox , Sergey Senozhatsky , Andrew Morton , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, Petr Mladek , roman.fietze@magna.com, John Ogness , linux-mm@kvack.org, Akinobu Mita Subject: Re: [PATCH 0/2] introduce DUMP_PREFIX_UNHASHED for hex dumps Message-ID: <20210119161524.31c695d3@gandalf.local.home> In-Reply-To: <184ab5eb-2508-0761-36c6-061d509fe104@kernel.org> References: <20210116220950.47078-1-timur@kernel.org> <20210118182635.GD2260413@casper.infradead.org> <20210119014725.GH2260413@casper.infradead.org> <202101191135.A78A570@keescook> <29122c86-bfea-2f25-d111-00641cc660ba@kernel.org> <20210119151045.15c1fee3@gandalf.local.home> <184ab5eb-2508-0761-36c6-061d509fe104@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Jan 2021 14:49:17 -0600 Timur Tabi wrote: > On 1/19/21 2:10 PM, Steven Rostedt wrote: > > I'm curious, what is the result if you replaced %p with %pS? > > > > That way you get a kallsyms offset version of the output, which could still > > be very useful depending on what you are dumping. > > %pS versatile_init+0x0/0x110 > > The address is question is often not related to any symbol, so it > wouldn't make sense to use %pS. When it's not related to any symbol, doesn't it still produce an offset with something close by, that could still give you information that's better than a hashed number. > > Maybe you meant %pK? I'm okay with that instead of %px. If others are OK with that, perhaps that should be the compromise then? -- Steve