Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4376899imu; Sun, 25 Nov 2018 02:21:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/W1kk1P+qOBvXHTK5j0TyFzhHsBh1pW5Ti2a0LWev9NlwgkWMOKVUoYFKlcz4q5jtnkRpJQ X-Received: by 2002:a17:902:4:: with SMTP id 4mr9408869pla.20.1543141261639; Sun, 25 Nov 2018 02:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543141261; cv=none; d=google.com; s=arc-20160816; b=gwwRTVMG91ij2pBgjr7yPZvZYGk22wctefXNIUXYLOrw1DkHsWYxiNYByZx7L/CbVb 8jUFmiEM5WvmcBRtn9pclrzy9xrARz8V5o+cohaLIAHLETVpDGbuvkJqbUY3qgHNnJSp 1aElLbauyLP+iHLk+LxkmTomR25CFaU8Cd/cPT8jhn2Llzx0NyYneUa/3o17wrpEM+7F k/3jv8P3nskPvDRjLLen40ziTG8mMHZHO4M4DwW6cDnFzJ7XDqX/MC9NOfDWgMW/PaXd uCo5GetQ8h/FNFgr6vvtT4bd2fUpb9VSb7UGR+xQ/FAiH7E57i3DJi2u1FsnuP2IK/tv hPoQ== 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; bh=jZx4OoyNvRuWjjde8V1DVDGrp3Kf7fyL6b2ozoWN4pE=; b=BWglsuvxhICPlf4yjDimGCxo/HD8XggzQKgcA2KNc+yGG5Az85g75BP1wewnkViTMG c3JM6oX96LsnLIVv4kXRbVrQEw4sNu1Kn3ZZliQhUFMH7tRGXmHso+1KqvlXoydFJ+tY tXdoeNAW3dgqjS7D6qR2lNHP/gXqGATe1ZRc86N5+ixoX6g9jYQIYTasHuC6jvn8WDCt qcKA4Ivxv/mEvQWCSXGMQng+MNcI61m4gPpo7bL+LQTcPCWeGX7iS/iyN+5vl3cGP5Eq z18Wys/7EDigFBaPJ9l/n5maaKPG1uid9XWJELHVkEYwmpBx1iQD2cTB0RfTf+z9FSqh xNEQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si54018868pgh.132.2018.11.25.02.20.33; Sun, 25 Nov 2018 02:21:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727526AbeKYVKU (ORCPT + 99 others); Sun, 25 Nov 2018 16:10:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55292 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbeKYVKU (ORCPT ); Sun, 25 Nov 2018 16:10:20 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB8585AFE9; Sun, 25 Nov 2018 10:19:34 +0000 (UTC) Received: from localhost (ovpn-8-21.pek2.redhat.com [10.72.8.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5D4B917001; Sun, 25 Nov 2018 10:19:33 +0000 (UTC) Date: Sun, 25 Nov 2018 18:19:30 +0800 From: Baoquan He To: Bhupesh Sharma Cc: Borislav Petkov , Linux Kernel Mailing List , Bhupesh SHARMA , Ingo Molnar , Thomas Gleixner , Kazuhito Hagio , Dave Anderson , James Morse , Omar Sandoval , x86@kernel.org, kexec mailing list , linux-arm-kernel , Kees Cook Subject: Re: [PATCH v2] x86_64, vmcoreinfo: Append 'page_offset_base' to vmcoreinfo Message-ID: <20181125101930.GA1824@MiWiFi-R3L-srv> References: <1542318469-13699-1-git-send-email-bhsharma@redhat.com> <20181121113944.GD27797@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sun, 25 Nov 2018 10:19:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/25/18 at 01:36am, Bhupesh Sharma wrote: > Hi Boris, > > Thanks for your review. Please see my replies inline: > > On Wed, Nov 21, 2018 at 5:10 PM Borislav Petkov wrote: > > > > + Kees. > > > > On Fri, Nov 16, 2018 at 03:17:49AM +0530, Bhupesh Sharma wrote: > > > x86_64 kernel uses 'page_offset_base' variable to point to the > > > start of direct mapping of all physical memory. This variable > > > is also updated for KASLR boot cases, so this can be exported > > > via vmcoreinfo as a standard ABI between kernel and user-space, > > > to allow user-space utilities to use the same for calculating > > > the start of direct mapping of all physical memory. > > > > > > 'arch/x86/kernel/head64.c' sets the same as: > > > unsigned long page_offset_base __ro_after_init = __PAGE_OFFSET_BASE_L4; > > > > > > and also uses the same to indicate the base of KASLR regions on x86_64: > > > static __initdata struct kaslr_memory_region { > > > unsigned long *base; > > > unsigned long size_tb; > > > } kaslr_regions[] = { > > > { &page_offset_base, 0 }, > > > .. snip .. > > > > Why is that detail needed in the commit message? > > This (and similar) details were requested by Baoquan during the v1 > review, that is why I added them to the v2 commit log. Hmm, Bhupesh, this is what I requested in your v1: lkml.kernel.org/r/20181030020752.GB11408@MiWiFi-R3L-srv You said x86 makedumpfile is broken because KCORE_REMAP is added. I wanted to know why it's broken. Now I think I don't need to request it in this thread, becasue Kazu has made it clear and fixed it: 4AE2DC15AC0B8543882A74EA0D43DBEC0355DFC9@BPXM09GP.gisp.nec.co.jp Or could you abstract the sentences in which I requested you to add above information into patch log so that I can notice my expression and can improve on future reviewing and communicating? And for problem solving and describing, if things are simple, just tell it direclty; If things are complex, try to simplify it and make it be simply told. For this page_offset_base exporting, we can save time on 'what' and 'how' since it's very simple and very easy to see what it is and how it's done. You just need tell WHY it's needed. BUT I saw so many words and not easy to get why. If simplifying problems is one kind of ability, I don't know what to say about complicating one simple problem, another kind of ability? I have read your patch log when you sent out v2, honestly I don't like it. I tried to not touch this patch, hope other people can review and give comments. This can make you know I didn't intentionally embarrass you on patch reviewing. Honestly, if this patch is merged, no matter v2 or your old v1, a small record will be made. On my x1 laptop, I need scroll down FOUR full screens till the real patch content is seen. Are those really needed? You can check other vmcoreinfo exporting patch. I really don't want to review people's patch if they don't welcome my words, just I was asked to do. Hope you know I had no any offence when I started to read your patch, just I felt not good when my head was scratched to bleed when read. My english is not good, I don't know how to express euphemistically sometime, so if I say so about one thing, that is how I think so to the thing, without any personal prejudice or attack to person. Please forgive me if any offence felt. Thanks Baoquan > Although personally I also think that such details are probably not > needed in a commit log (may be better suited for a cover letter, which > is maybe a overkill for this single patch). > Will drop this from v3.