Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1488022pxb; Wed, 10 Feb 2021 09:24:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGVhr0xtbWq4IuyRvgiYpPPDuU83/6M9GUGJL84yfnOqitv11lKQA8C6A8RKYjoDh8Xt9p X-Received: by 2002:aa7:cd0a:: with SMTP id b10mr4059530edw.153.1612977899638; Wed, 10 Feb 2021 09:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612977899; cv=none; d=google.com; s=arc-20160816; b=PelRVYuIwfvGdO2rJW4Ra70EI/17LM593RGZNazpE7I55mugrja9gNj0LeXLWuQ0+Y 5idosapKwMphiyki2WPEQc3Fwz5PVKGX0E6aT8Th1Zo22rTGziOv859vtw1TVMAJ0af7 N852WfFvAjSZq/arSQgs8GGtBqf5GD6QgbtCcYfhuXGepG3+beKRNPo5VQeEC6wGwqbJ uOhkh3cGw7aCeh6/n7tMHNfWQz7BK+dA3WvCNA/Rx/z8ST1JwxghiOHHG0yIJz4RiJla 2hulNJGhSN1HWk22Cb1D4YDGEqcwNsDA8HAOnAR1ymopqYym9ep7vAQWlQq8+d8D3+u/ gfDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/xObD9ZU5LGJnkgQ6c/M/AAb8lZO+2ih08medkVoP3c=; b=AcfN+kcQz6U4gvrKTVsXg3rHxVt7X7Eei3F5syKIquCw7OXkf3WHF4gi8AoRiRtFXT aZ3i4AgIAA5Hn1Q+IqSLrdkQttWL3FhXlv2fI0HX/M68cvZGm5hXK2icYni75EKVoRl3 4UB1sis6Bf96+ks+JTShNUy3ouXTjJ0djn5nrN6MBSKpk1pSfS2zJ96utC5rfh+ed3lL DDD0LV/9gDxxk7MJuo8JTFv9sVA+QS8XzATCel9bBLMDnafaEM6mJAKsWpeamGNvqbkF EwAQNlzYW5k+URy9RZlBy1sGMr5myJTBYpeg/MYg08uqJWzu7MP8bP5CnCT/Odh6GIDW 3PcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GGr4C1jJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si1671351edc.111.2021.02.10.09.24.35; Wed, 10 Feb 2021 09:24:59 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GGr4C1jJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232286AbhBJRWp (ORCPT + 99 others); Wed, 10 Feb 2021 12:22:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:43712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232312AbhBJRWg (ORCPT ); Wed, 10 Feb 2021 12:22:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B5C2A64EBC; Wed, 10 Feb 2021 17:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612977716; bh=lxipoW35mWSIBNIGbM7Z2K+aGwYJwr9dKY4OANlak7k=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GGr4C1jJH4Zp9a/mEIU72UybzoYaT9/TIZxXNQmm5bAT/zvaeeSglDED9fUewnpO7 BrYrmiMW+g9SlVPVQksfYgQAbIVF0MTKkmMfi6NjxV87X1h2j8kZIMaBemRGPmn7+4 ZC1DyPS/e74GCSezb1hpd4YqPlSuerNNkhZdoLgis7oXUugfa5Lp86K7MOaToF8nkY Euzi9bVksgdHYqKG+3cp+jI3MXdlyDiTu6Or/oIdGHWPIOg5OUhFyWq1Z574CStmXU /Sq0uns4Ac01xgy0nc3+py4R0tedjVGEpLlH/raD2rf/eJctQlOCrCNFZzIHi93eN+ 0gsZ67yEPIsbw== Subject: Re: [PATCH 0/3][RESEND] add support for never printing hashed addresses To: Steven Rostedt , Tetsuo Handa Cc: 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 References: <20210210051814.845713-1-timur@kernel.org> <6da0be5a-7cb0-4943-e61f-7c3275e60cb6@i-love.sakura.ne.jp> <20210210111836.2468f10a@gandalf.local.home> <20210210114633.1b755f6e@gandalf.local.home> From: Timur Tabi Message-ID: Date: Wed, 10 Feb 2021 11:21:52 -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: <20210210114633.1b755f6e@gandalf.local.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/10/21 10:46 AM, Steven Rostedt wrote: > Now the question is, why do you need the unhashed pointer? > > Currently, the instruction pointer is what is fine right? You get the > a function and its offset. If there's something that is needed, perhaps we > should look at how to fix that, instead of just unhashing all pointers by > default. The original version of this patch only fixed print_hex_dump(), because hashed addresses didn't make any sense for that. Each address is incremented by 16 or 32, but since they were all hashed, they may as well have been random numbers.