Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1438278pxb; Wed, 10 Feb 2021 08:21:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwP95f1wXwZqzAncPVATdr6sMUCvSck2FIG967Ly4lUdga7Qw/67sBzYviUO5RVYqjShqT1 X-Received: by 2002:a17:906:17c3:: with SMTP id u3mr3620780eje.304.1612974090703; Wed, 10 Feb 2021 08:21:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612974090; cv=none; d=google.com; s=arc-20160816; b=ZjBEAqd649/fzRFBQin7FZiopFnDHu2aRhavwhYHSZjW17eOl84zaU8RjdNJkTaA2N 29A9Og5kAmeQ7DK+Y7CR7F5H/H45Lx40K1QGtZp31DqbHgTcLRE1qUOv9i46CbZcEK5P I8zfcCivvrs3dsGPdj9ik2wxEf7eOqzAogo+g+wUG7s0EQlCwv50hvfV5KSCCPZSKBf9 DHZzc2jwNz7fELOsiv350nhtzBuvb/FnkA3nYFu1X4/rZC0CaF5mYfohnwx++GX0cRqm W16dH47RdxIVh8YyU+Rt+xhCiW5PLjse0a+wGLO40oyOdEArCZNwcjshig/l3bI6cbcK rdMg== 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=XBY3fkWde2r3kKzcFUUI4WhEf30THeOui/aZ9UeH7q8=; b=R4a4z/jY4oyEWPcoxKijVYW94U6UY1nO2J6QDplZEauj4UMhFHXmptiDBLC7YcO+Mi Yry3UnFWs374G8We6wIWEmU/QvrMyoMu1nDfQUI8FEh4kvIJteHXgkvBZZMD8dQB2kBJ 4J9ycbZcv9qVqE3RQmFmJ0I4mlj+RgvdqTg/4wwgziTE64Lt7i692aUvjDx7OEcr988H WMdYiJk24heHYBDhvQ80ZrholGPF1/SIPbFjwimKWrIznDxtR8uYTedxx3Dcuk0fqAYK /GsRCDfWxiYEMBz1ldCuaLijsWPN0YP+VLsilQ0m7Xj7oFBdgZa/DshWikBv8datDsR6 0NCw== 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 js10si1553131ejc.446.2021.02.10.08.21.06; Wed, 10 Feb 2021 08:21:30 -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 S232270AbhBJQTj (ORCPT + 99 others); Wed, 10 Feb 2021 11:19:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:56316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232273AbhBJQTU (ORCPT ); Wed, 10 Feb 2021 11:19:20 -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 A479164E05; Wed, 10 Feb 2021 16:18:37 +0000 (UTC) Date: Wed, 10 Feb 2021 11:18:36 -0500 From: Steven Rostedt To: Tetsuo Handa Cc: Timur Tabi , Petr Mladek , Sergey Senozhatsky , Vlastimil Babka , Andy Shevchenko , Matthew Wilcox , akpm@linux-foundation.org, Linus Torvalds , roman.fietze@magna.com, Kees Cook , John Ogness , akinobu.mita@gmail.com, glider@google.com, Andrey Konovalov , Marco Elver , Rasmus Villemoes , Pavel Machek , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/3][RESEND] add support for never printing hashed addresses Message-ID: <20210210111836.2468f10a@gandalf.local.home> In-Reply-To: <6da0be5a-7cb0-4943-e61f-7c3275e60cb6@i-love.sakura.ne.jp> References: <20210210051814.845713-1-timur@kernel.org> <6da0be5a-7cb0-4943-e61f-7c3275e60cb6@i-love.sakura.ne.jp> 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 Thu, 11 Feb 2021 00:46:15 +0900 Tetsuo Handa wrote: > Oh, I was wishing > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c > index 3b53c73580c5..34c7e145ac3c 100644 > --- a/lib/vsprintf.c > +++ b/lib/vsprintf.c > @@ -802,7 +802,7 @@ static char *ptr_to_id(char *buf, char *end, const void *ptr, > * Print the real pointer value for NULL and error pointers, > * as they are not actual addresses. > */ > - if (IS_ERR_OR_NULL(ptr)) > + if (IS_ERR_OR_NULL(ptr) || IS_ENABLED(CONFIG_DEBUG_DONT_HASH_POINTERS)) > return pointer_string(buf, end, ptr, spec); > > /* When debugging early boot use non-cryptographically secure hash. */ > > change as a kernel config option, for more we try to switch using kernel command line options, > more we likely make errors with sharing appropriate kernel command line options > (e.g. https://github.com/google/syzkaller/commit/99c64d5c672700d6c0de63d11db25a0678e47a75 ). The entire point of this exercise is not to make it easy to add this feature. Linus was absolutely against a config option, and I am too. The point of this exercise is to be able to debug the *same* kernel that someone is having issues with. And this is to facilitate that debugging. Whereas the example you show, the command line modifies how the kernel works. This command line only modifies what the kernel displays. Big difference. -- Steve