Received: by 10.223.164.202 with SMTP id h10csp550587wrb; Mon, 6 Nov 2017 11:03:49 -0800 (PST) X-Google-Smtp-Source: ABhQp+SaUcIhz5ceqYj6QmHviTphPQrJD5VcyJkAqRRrzisT4/CuwhLHolUMsT4EuYL8ihVQj1CC X-Received: by 10.99.2.132 with SMTP id 126mr7130731pgc.375.1509995029321; Mon, 06 Nov 2017 11:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509995029; cv=none; d=google.com; s=arc-20160816; b=z5Vr7GXFbYv1B7UwA1BTVE38z+NFfA0aJKw6gA1b2yr4+8UA1Gh6lp0KpkleJ3O5bo dXdEI75du1zoKONZkEbzRoq0jGJxh83iEcR3F4zJWzhXx/yzH4iqy/QC7+Dh1JcaHgeH JhzDVGmCYugLzkDfIw2EFErjrAoizSWaBB5vJa5EBjSIlzNPnr2/N0po37y8C0plsNlT QaiCMfLRS0H3EYKVE9rmV71HfxqEz5LPGwG9NhEA/fqaTyh+6svnno3nyVShx//WLV7Y AY7QSV6TWtw9RMvRz5cuWbRnM3+DlAJOFjU9QgIjje/Pf19BLyx2ZDT8VhXongQu8YJn YzMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=XmDw0Vzf+n4ValaoIzOS+NstUcva3qMnQOjGjsTr7ZQ=; b=KiWcpF7O11rYa4m9aEa8X8mQj8Urd8wSX621K3VD9NHGuXQCrxMtnlgdBOsCJlQN09 wNp9FXVa7QSqjGmRysg4odGsoMltTUnH5y0GhlTlVaUnaCNw4fDjSZluxbJWBoAWRmjX eHq2S4HarxRWvjvenKSv5Rs9IpWZgP1bVrNsIZ9/Sb0jWvxWehzRTE0n1TFo/1fu5YBb KmV0AlPkKY2ltcSD4qYVu+Hv/TnaGQNCQlNp61yXfJKMRYFoqcGZtckOpzMIokCUjlBF Yr3d1+rf8JVZRCVv+P1pepxpizyE9dM2M32YuK9tTqkgRXpiqKIzar4Kf3o5/GZi2oNc nWlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14si11998569pgf.310.2017.11.06.11.03.35; Mon, 06 Nov 2017 11:03:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754202AbdKFQsr (ORCPT + 97 others); Mon, 6 Nov 2017 11:48:47 -0500 Received: from mga11.intel.com ([192.55.52.93]:61527 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752977AbdKFQsq (ORCPT ); Mon, 6 Nov 2017 11:48:46 -0500 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2017 08:48:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,353,1505804400"; d="scan'208";a="918148994" Received: from sofia.sh.intel.com (HELO sofia) ([10.239.147.120]) by FMSMGA003.fm.intel.com with ESMTP; 06 Nov 2017 08:48:44 -0800 Date: Tue, 7 Nov 2017 00:48:47 +0800 From: "Liu, Changcheng" To: Josh Poimboeuf , Petr Mladek , changcheng.liu@intel.com Cc: sergey.senozhatsky.work@gmail.com, Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0001/0001] format idle IP output func+offset/length Message-ID: <20171106164847.GD69364@sofia> References: <20171106052511.GB69364@sofia> <20171106080528.GA1298@jagdpanzerIV> <20171106105203.GC69364@sofia> <20171106131147.ouihd4ug5ah3vb6a@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171106131147.ouihd4ug5ah3vb6a@treble> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thx Josh. I'll refine the patch. Answer question as below. On 07:11 Mon 06 Nov, Josh Poimboeuf wrote: > On Mon, Nov 06, 2017 at 06:52:03PM +0800, Liu, Changcheng wrote: > > kaslr feature is enabled in kernel. > > Remove kernel text address when dumping idle IP info > > > > Signed-off-by: Liu Changcheng > > Signed-off-by: Jerry Liu > > > > diff --git a/lib/nmi_backtrace.c b/lib/nmi_backtrace.c > > index 0bc0a35..9cc4178 100644 > > --- a/lib/nmi_backtrace.c > > +++ b/lib/nmi_backtrace.c > > @@ -92,7 +92,7 @@ bool nmi_cpu_backtrace(struct pt_regs *regs) > > if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) { > > arch_spin_lock(&lock); > > if (regs && cpu_in_idle(instruction_pointer(regs))) { > > - pr_warn("NMI backtrace for cpu %d skipped: idling at pc %#lx\n", > > + pr_warn("NMI backtrace for cpu %d skipped: idling at %pS\n", > > cpu, instruction_pointer(regs)); > > } else { > > pr_warn("NMI backtrace for cpu %d\n", cpu); > > 1) The patch introduces a compile warning. I've got the point because the conversion between pointer and unsigned long. > > 2) When posting a new version of the patch, it should have a new version > in the subject, e.g. "PATCH v2". Thx for your guide. I'm on the way to work with community. > > 3) The subject is missing a prefix, like "lib_backtrace: " > > 4) The subject isn't very clear, how about something like: > > lib_backtrace: fix kernel text address leak I'll use this subject. > > 5) The description isn't correct. KASLR isn't always enabled, it > depends on the user's config. But even without KASLR, we don't want > to leak kernel text addresses. That's fine. > > 6) The description should use complete sentences. Yes. > > 7) I'm not sure the "Signed-off-by:" chain is correct. Was Jerry Liu > the original author of the patch? This is my personal bad habit. I'll correct it. > > -- > Josh From 1583322458483195420@xxx Mon Nov 06 13:12:43 +0000 2017 X-GM-THRID: 1583285189293629278 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread