From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21665C433DB for ; Tue, 9 Feb 2021 22:15:29 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B5F5B64E79 for ; Tue, 9 Feb 2021 22:15:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5F5B64E79 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 304E06B0005; Tue, 9 Feb 2021 17:15:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B4C86B006C; Tue, 9 Feb 2021 17:15:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D4CF6B006E; Tue, 9 Feb 2021 17:15:28 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0134.hostedemail.com [216.40.44.134]) by kanga.kvack.org (Postfix) with ESMTP id 06E346B0005 for ; Tue, 9 Feb 2021 17:15:28 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C053E8248068 for ; Tue, 9 Feb 2021 22:15:27 +0000 (UTC) X-FDA: 77800136694.18.cave81_430c0c92760a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id A0995100ED3C2 for ; Tue, 9 Feb 2021 22:15:27 +0000 (UTC) X-HE-Tag: cave81_430c0c92760a X-Filterd-Recvd-Size: 2655 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf50.hostedemail.com (Postfix) with ESMTP for ; Tue, 9 Feb 2021 22:15:27 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 6EDD364E56; Tue, 9 Feb 2021 22:15:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612908926; bh=0/Nk2UkuxA+ITAZU8i4aiVofSUv2nNvX1ns749mDVdU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=or3bF4mZbUon8GBxxqUQDPJmS4jdw95al2dE5CQxoFPMU6gRPZRfNTrJb8LY9ddaq 3C5hnV+T2CJJN9glfhmapD2ikVa3z1LTfImVtnihe2MpMSdKj+VZV8hABXOqWyTVpJ fHy30qvSV227DtmZB2SxzNQ852WHNT6kRJrdfIfIocRR4h40XsgMC7w5zWZVwCQmBZ NTlSgJNQbtAJfGBneGdNTITWtmhUvNtU53vvZZbOImHAQYP+QYGvXIJDudF11VMic4 gWctk8srlXLQKemh8TYpQMb8cZxVKtr69vA/rnRK/bcol4n+WSIzA8NeplAKnLM4oj rWm6IIC1p0vGQ== Subject: Re: [PATCH][RESEND] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed To: Marco Elver Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , linux-kernel@vger.kernel.org, vbabka@suse.cz, linux-mm@kvack.org, willy@infradead.org, akpm@linux-foundation.org, torvalds@linux-foundation.org, roman.fietze@magna.com, keescook@chromium.org, john.ogness@linutronix.de, akinobu.mita@gmail.com, glider@google.com, andreyknvl@google.com References: <20210202213633.755469-1-timur@kernel.org> From: Timur Tabi Message-ID: <2de3a189-adca-4954-e2a3-c79fbe3eee96@kernel.org> Date: Tue, 9 Feb 2021 16:15:20 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2/9/21 3:59 PM, Marco Elver wrote: > Would it be reasonable to make this non-static? Or somehow make it > possible to get this flag from other subsystems? > > There are other places in the kernel that dump sensitive data such as > registers. We'd like to be able to use 'debug_never_hash_pointers' to > decide if our debugging tools can dump registers etc. What we really > need is info if the kernel is in debug mode and we can dump all kinds of > sensitive info; debug_never_hash_pointers is would be a good enough > proxy for that. The next version of my patch (coming soon) will export the symbol. It's intended for test_printf, but if you think it can be used by others, so much the better.