Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1034199imu; Wed, 28 Nov 2018 03:39:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/WQ+vqeydrFf+gX/UcnSOwbCBpCJMIF5wQK8BFtM2WhFKiWyTz4Rlft/BBFxpJKdPa2xvyB X-Received: by 2002:a63:6ac5:: with SMTP id f188mr33181776pgc.165.1543405164341; Wed, 28 Nov 2018 03:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543405164; cv=none; d=google.com; s=arc-20160816; b=Ch1kvh0Y4H05dWIEBX5uUCn5/L6HL/cvcH2nAE0+YFd4bLWgEBLPLLZB2yl++WfXkL ac6FwuktKY06f7cpkd77Ldhpa+x1RtSlRkqnyPnFRPw/S2/2t2CssFmT4hktbpEUDFcz 1cj+4K5oubbeNkW2XK6RskgAeCcL1PKACRqtOvAFrAXdCcdKGk9oGetO3CUtPXAuvxbg //u6v/3yDFRfLZd/qQHYqSCi2p717v4s2NT2A9BglZrCUMtAQ0bN7mwplY45Y2Ls8vlL rrKeKwyLszEWKNerJWyxHeu9MsY3robOuyUbeyJLhFaAK3JINwnabbJVy9XuN/KuWEZ/ X98A== 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=FEfNZ6av8E0EnNUJsa99G6rgjB/W6cezY1Zf52dTglk=; b=ZP7HRPDZ/ypUSGdxzMCOpbyzztA5b6dhaRJT/ABAaxxlnKD0e9zjt7BDfw9WdnqoGv ZYkOIV+alpVw0IIb0+oMK0Hd4RM4E8nm29685cIFW7XZsyEA4cKRU2V+5ofjFWY6x/6/ uzAROz39VRUU4ryVbR3AdBrzFZwnjcPV+fE4avGNPNXwrrUxKB9yqf6x924UiJdgdiG1 240agvlpMFCqbdjxdfXQ2cphYY2nPXUs6Mh3O8OrC+JFeORRXz5BwcG/1YYmYnG4BhCZ OohM8/HXWZT+5mVGaevRDwaGVeAW/4mgzXJxQKIrzn1S3rnggQ5CRNNl0esPUKsMOpA6 K6WA== 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 d23si6743378pgm.559.2018.11.28.03.39.08; Wed, 28 Nov 2018 03:39:24 -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 S1727867AbeK1Wjw (ORCPT + 99 others); Wed, 28 Nov 2018 17:39:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42040 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727491AbeK1Wjv (ORCPT ); Wed, 28 Nov 2018 17:39:51 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5ABAD2D7F8; Wed, 28 Nov 2018 11:38:30 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-28.pek2.redhat.com [10.72.12.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 434266FEE7; Wed, 28 Nov 2018 11:38:22 +0000 (UTC) Date: Wed, 28 Nov 2018 19:38:19 +0800 From: Dave Young To: Borislav Petkov Cc: Bhupesh Sharma , Kazuhito Hagio , Kees Cook , Baoquan He , x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Omar Sandoval , Dave Anderson , James Morse , Thomas Gleixner , bhupesh.linux@gmail.com, Ingo Molnar , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] x86_64, vmcoreinfo: Append 'page_offset_base' to vmcoreinfo Message-ID: <20181128113819.GA19079@dhcp-128-65.nay.redhat.com> 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: <20181121113944.GD27797@zn.tnic> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 28 Nov 2018 11:38:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > now possible to use the vmcoreinfo present inside kcore as the standard > > ABI which can be used by the user-space utilities for reading > > the machine specific information (and hence for debugging a > > live kernel). > > > > User-space utilities like makedumpfile, kexec-tools and crash > > are either already using this ABI or are discussing patches > > which look to add the same feature. This helps in simplifying the > > overall code and also in reducing code-rewrite across the > > user-space utilities for getting values of these kernel > > symbols/variables. > > > Accordingly this patch allows appending 'page_offset_base' for > > x86_64 platforms to vmcoreinfo, so that user-space tools can use the > > same as a standard interface to determine the start of direct mapping > > of all physical memory. > > [snip] > All above are only nitpicks though. > > My opinion is this: people are exporting all kinds of kernel-internal > stuff in vmcoreinfo and frankly, I'm not crazy about this idea. > > And AFAICT, this thing basically bypasses KASLR completely but you need > root for it so it probably doesn't really matter. > > Now, on another thread we agreed more or less that what gets exported in > vmcoreinfo is so tightly coupled to the running kernel so that it is not > even considered an ABI. I guess that is debatable but whatever. We do not regard this strictly as an ABI, but we also carefully review every new extra exported thing and only export when we have to do so eg. something breaks. Seems this change only make userspace tools handling on the kaslr case easier but since everything works without this patch I would prefer not to do it. > > So my only request right now would be to have all those things being > exported, documented somewhere and I believe Lianbo is working on that. > > But I'm sure others will have more to say about it. > > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply. > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec Thanks Dave