Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1988694pxu; Fri, 9 Oct 2020 05:16:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2CQaS79TDk46fg+WEQx7Ou8HkmQ3qHDQw5n1rBBI6nAGrhxXbSyYCQYKKLuGSNObiJ8i6 X-Received: by 2002:a1c:b657:: with SMTP id g84mr13868837wmf.0.1602245816503; Fri, 09 Oct 2020 05:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602245816; cv=none; d=google.com; s=arc-20160816; b=kw5+zWbhf1jhIGMSqNqasnBgiKWFn+YRDUIU+pOP3QC1jim8dD8gbUtzJN8Du8/4MH +o0I8vTyyF1aqmDDaZ5/RLWPLf1kUJWNKSkC7XoUP0DOA3/YXYdsvgMTjwS5gSmaDtGQ V+dwW3BBo8+e3I0lk8ap9Cy51bA0wIdTP+V5FyZTnl0YVsKk4reghm7j0Cxp2Gy3ikAK JOEAFnmAP87RIBP70u1qb1BaIiPQseldAwZV5oio5G834qI4j9rNGg06mFzdzVFRLQtn kQ7tjVPqoikKugoc4LHMk6S1+Y02qIplBx8KIJn35+qodiNKvX0kAyF2FdLcRkXHHGGl fjXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=HOYXw5spBnyO+QOXMYrmXWa2C0FW/lpSo+gU4BdVEe4=; b=zIRuU+B5/4YE8Urxt76vgCiwBCqYJBX2eJOfNvSV99+Wm1/MbiVUkZ1XholmmHLCvQ cQMuZMAO9Hu+v4edNZE1OIVr5mxPui8kq8DZa3aua+CodEeMnZGcR1tCIy79KZPbffIQ JvzC6dGA1SHPnu5uiWHr9T4AKBvyYoDGLdXV5fHv5/f5R2adGxHQccv4aee512FnO1Ly BXVSXKY9kfcvQcjFIArIIiGJPi2m9cVZJDXNpr3ZRaqch+XZcaoLMxPAjPI2kcS0xIC1 PqFv3uka5qtnPQBeBZafxBH610yilJxA0Jnw2ykhv0xami+9MuSsI0QbjP2944o7h9Di d0vg== 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 r23si5699386edm.125.2020.10.09.05.16.33; Fri, 09 Oct 2020 05:16:56 -0700 (PDT) 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 S1732953AbgJII65 (ORCPT + 99 others); Fri, 9 Oct 2020 04:58:57 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:35744 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732507AbgJII64 (ORCPT ); Fri, 9 Oct 2020 04:58:56 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9FB24A3E691660E77F98; Fri, 9 Oct 2020 16:58:55 +0800 (CST) Received: from [10.67.102.197] (10.67.102.197) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Fri, 9 Oct 2020 16:58:48 +0800 Subject: Re: [PATCH] arm:traps: Don't print stack or raw PC/LR values in backtraces To: Sebastian Andrzej Siewior , "Russell King - ARM Linux admin" CC: , , , , , , , , , , , , , , , , References: <20201009075957.110017-1-nixiaoming@huawei.com> <20201009080849.GM1551@shell.armlinux.org.uk> <20201009081820.jargnmck6zfkzegx@linutronix.de> From: Xiaoming Ni Message-ID: Date: Fri, 9 Oct 2020 16:58:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.0.1 MIME-Version: 1.0 In-Reply-To: <20201009081820.jargnmck6zfkzegx@linutronix.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.197] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/10/9 16:18, Sebastian Andrzej Siewior wrote: > On 2020-10-09 09:08:50 [+0100], Russell King - ARM Linux admin wrote: >> I am really not happy about this - it hurts at least my ability to >> debug the kernel when people post oopses to the mailing list. If In the reset scenario, dump_mem is retained: @@ -125,6 +118,9 @@ static void dump_mem(const char *lvl, const char *str, unsigned long bottom, mm_segment_t fs; int i; + /* Do not print virtual addresses in non-reset scenarios */ + if (!panic_on_oops) + return; >> people wish to make the kernel harder to debug, and are prepared >> to be told "your kernel is undebuggable" then this patch is fine. > > I haven't look at the patch but don't they keep/add the representation: > PC: symbol+offset/size > LR: symbol+offset/size > > ? This is needed at very least as a replacement for the missing address. Yes, only %08lx was deleted, but %ps is still retained. - printk("%s[<%08lx>] (%ps) from [<%08lx>] (%pS)\n", - loglvl, where, (void *)where, from, (void *)from); + printk("%s (%ps) from (%pS)\n", + loglvl, (void *)where, (void *)from); Thanks Xiaoming Ni