Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1477392pxb; Wed, 10 Feb 2021 09:10:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+fb9ciTJ4sxZRx+77lDiIK9KAW0E1Huv3HTkr9trT5gv7vwuCL9DE4OaiCFF+TBDDObqp X-Received: by 2002:a17:906:eca5:: with SMTP id qh5mr3799221ejb.161.1612977040797; Wed, 10 Feb 2021 09:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612977040; cv=none; d=google.com; s=arc-20160816; b=oxzh9I1pk7ENdaATpRJsMi/KM8tA7yPC+Sh7XEZYNZeb1rNmQkJAKDDm2F4zei8izh PJbAd7LKadskfjTZ1XL2bsNRyqBQj/ZW1Xwpk0ivUkuRqsZm24fJ//7cgrGStS5REw3+ HO+zSCI6v4Dr0esYtKwN0iBMotieJW/zFEjSp/7jeKbebA7OpDwselU+p8Je0YfDkqFF Kd9J6K8wT61nt/zP+7/J0D4YkLcjiMzoY04B9yFhgZPuFvpe4eNk1W+f98Q8K3UbQQ/O YqJ4QYD+/fscS3CUTJ0mWORFEfLC4+Opj3NDkak5dwEpo7mOrg0wzgUus0MOLt1lxDna ZL4w== 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; bh=l3ggKloi1X6h3aMkbvliHK/UuQfZYCAQdMG4F9Bj0Lg=; b=HyyikcSb5kl1TToICSTuIETM4OxuwKf4yXvEHtp5uMUgF+ql0twDay+JELkWdkZPyg 72FlJemIsSv0M9QZBpb2/IXUkSLfYkO3pDDsN0NcOzopxfBFAuUjkUv4g6RjYtqG/Fq8 kmBANi6rInEyLU64zvY/8tky9gdw4X2uIljY7Yjanp1HsD6SHraJ6Kv91YNayRAFsPXV A8mXU0js4suoEr1Y3JC3liu2cHzZOr+ky36YS+vDdfNWEWwch4XV5DGeggUN5Dr3TKGB SkCRamm997f+Tf1MTFSJh4/qOo4o0CyrKYuCp4u6VNCe+KwVtMCLAvK7qal0avrzXKBQ k0lA== 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 ji19si1745399ejc.358.2021.02.10.09.10.15; Wed, 10 Feb 2021 09:10:40 -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 S230489AbhBJRI3 (ORCPT + 99 others); Wed, 10 Feb 2021 12:08:29 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:61123 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbhBJRIK (ORCPT ); Wed, 10 Feb 2021 12:08:10 -0500 Received: from fsav302.sakura.ne.jp (fsav302.sakura.ne.jp [153.120.85.133]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 11AH7QGZ037842; Thu, 11 Feb 2021 02:07:26 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav302.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav302.sakura.ne.jp); Thu, 11 Feb 2021 02:07:26 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav302.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 11AH7QoT037837 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Thu, 11 Feb 2021 02:07:26 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH 0/3][RESEND] add support for never printing hashed addresses To: Steven Rostedt 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 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: Tetsuo Handa Message-ID: Date: Thu, 11 Feb 2021 02:07:21 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210210114633.1b755f6e@gandalf.local.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/02/11 1:46, Steven Rostedt wrote: > On Thu, 11 Feb 2021 01:39:41 +0900 > Tetsuo Handa wrote: > >> On 2021/02/11 1:18, Steven Rostedt wrote: >>> 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. >> >> That's too difficult to use. If a problem is not reproducible, we will have >> no choice but always specify "never hash pointers" command line option. If a >> problem is reproducible, we can rebuild that kernel with "never hash pointers" >> config option turned on. > > Now the question is, why do you need the unhashed pointer? Because unhashed pointers might give some clue. We can rebuild the same kernel using the same kernel config / compiler etc. and compare unhashed pointers with addresses in System.map / kallsyms files without reproducing the problem. > > 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. I'm not refusing to use kernel command line options. I'm expecting that we can also hardcode using kernel config options. Since boot-time switching via kernel command line options makes the kernel behave differently, less boot-time switching is better for avoiding unexpected problems (e.g. unintended LSM was enabled).