Received: by 10.192.165.148 with SMTP id m20csp1804309imm; Sat, 5 May 2018 23:20:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpKHsf0u2DKjN2LXiGgCf15cDlr6he1gXfXuXi4jYWv+VDGcvRZXllNOYP6lbmh+6bqNZf1 X-Received: by 10.98.91.2 with SMTP id p2mr24369020pfb.96.1525587624979; Sat, 05 May 2018 23:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525587624; cv=none; d=google.com; s=arc-20160816; b=Pg2OpIUoJ+Yo8ZlNASFVGqdwLj8iaOpsE3yE/XX6HA/pCF2HbynLX98oeCoWpwXzi0 H6dZglfR/Cqs1G7kk0QebRmkEHDmzXHZrnlC7pbuJIXBXkByPRVsTDdIuNWuZMvnFLNU eDBLpEdVvLjeED+KynnDnWPWJEYfOcF51bqpkQ7BJqSdZaZDeeXpisYXpxYXcT94vUYd +okKcPDLqzaAif566OKc4eh6YXHh4hRYR7tSfCP9GNMl9w64+2JBCV89r4XOdStw0HWQ +CXLLP8StHcm0dg2kKIGst8Z8zN3Q8O82tsjBc+iyXa8WsDJhmRXYzAa+rPcaO4HiM9y oDQg== 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=0SnmhiYZFrpttSmGUatJ+CasmmDREdGE25HonhOG8Ho=; b=C9lCi6hmy/tptsSF2x0DCH2Z2SC7VmVlVz6zr3T1vXTVESpKsZUivDsIv93UblbwWa bOfQiZlh7pyIXRxxuM2PZdONjPvx7cl7ZZQ90TmVQvppMneY1vnev1Ia3VVWNK2zcYN7 /EXyWGUQs3/1wpSoU5mXz9HesLvNO7offcxFeXA1pBixZRcQHgoYTSKJP+eFTMCR9DWR YfLzO4JoAfyXpRi/gWkEiY0B7Vb+j15Nq/3hWUHWefcDoPsyOyNJabqFTy9m4A/KVVWW fXQmTWjrKKyrh7X/Fj9+/Q31nVpAFQ01jVBDpNe2xGjQgYP4kU2veifUnIBLgWnIcT0t WvkQ== 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 t29-v6si16524845pgo.539.2018.05.05.23.20.09; Sat, 05 May 2018 23:20:24 -0700 (PDT) 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 S1751266AbeEFGT7 (ORCPT + 99 others); Sun, 6 May 2018 02:19:59 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56796 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750983AbeEFGT6 (ORCPT ); Sun, 6 May 2018 02:19:58 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6C6334023113; Sun, 6 May 2018 06:19:57 +0000 (UTC) Received: from localhost (ovpn-8-18.pek2.redhat.com [10.72.8.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2DE05108484; Sun, 6 May 2018 06:19:54 +0000 (UTC) Date: Sun, 6 May 2018 14:19:51 +0800 From: Baoquan He To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, robh+dt@kernel.org, dan.j.williams@intel.com, nicolas.pitre@linaro.org, josh@joshtriplett.org, Thomas Gleixner , Brijesh Singh , =?iso-8859-1?B?Suly9G1l?= Glisse , Tom Lendacky , Wei Yang Subject: Re: [PATCH v3 2/3] resource: add walk_system_ram_res_rev() Message-ID: <20180506061951.GF30581@MiWiFi-R3L-srv> References: <20180419001848.3041-1-bhe@redhat.com> <20180419001848.3041-3-bhe@redhat.com> <20180419100745.GC3896@pd.tnic> <20180426085649.GC18395@localhost.localdomain> <20180426110905.GH15043@pd.tnic> <20180426132204.GF19030@localhost.localdomain> <20180504101631.GB9377@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180504101631.GB9377@pd.tnic> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Sun, 06 May 2018 06:19:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Sun, 06 May 2018 06:19:57 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'bhe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/04/18 at 12:16pm, Borislav Petkov wrote: > On Thu, Apr 26, 2018 at 09:22:04PM +0800, Baoquan He wrote: > > I noticed maintainers merged patches with this Message-ID, could you > > tell how to get this Message-ID? > > https://en.wikipedia.org/wiki/Message-ID thx. > > > This is not a thing that one is top down, the other is bottom up. For > > us, they might be so different on details of code, for customers, they > > just think them as a same thing. They may say I just get a new machine, > > and still do kexec loading, why these top-down, bottom-up things come > > up. > > So if I read the above correctly, it doesn't matter whether top-down or > bottom-up. Well, kexec_file loading is added because kernel signature verification has to be done in kernel space, it's implemented by porting code of user space utility kexc-tools to kernel. In essence both the kexec loading and kexec_file loading are the same, they are all used to load kernel for the furture kexec/kdump jumping. Now they have different kernel loading position, could you tell how you get the conclusion that it doesn't matter? And what's your theory basis? And KASLR also changes kernel's position, I don't think users have to know all these details to exclude unnecessary noise. > > > And this is not causing code churn. You can see that by replacing > > pointer operation with list_head, code in kernel/resource.c related to > > child list iteration is much easier to read, > > Now *this* is starting to sound like some reason "why". If it is better > readability, then say so in the commit message. Yes, I can add it to log in next post. While the main reason I made this is for the top down searching of system RAM in kexec_file loading.