Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3271429imu; Mon, 19 Nov 2018 13:18:55 -0800 (PST) X-Google-Smtp-Source: AJdET5drjNZU1jWT9TSFYjlIS5VnK//zqpYz42eS6FWHFViubheQnn+152ahFKnjPJnR5xmz/gsS X-Received: by 2002:a63:da14:: with SMTP id c20mr20752974pgh.233.1542662335320; Mon, 19 Nov 2018 13:18:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542662335; cv=none; d=google.com; s=arc-20160816; b=hprRlJzxP+/jg3DoYPil2AqWoKTfjTD8RJ1Jrai4Do5DGFxQanX/OkrTnDKvanUSbJ Ye3o+OjSmKh8BEZgRK9dRg1i0I5BSJSRwDSqmIkLUZPZnP41gHVrLe+MIol6Rr6/jvlY 3aIxW4JzFb4sgd+7+srJ/OSZ4XNsQ9ki4TALm1J3tCpFG1+LsNP4h1n7dWrG2LxmZjG/ QDxfyMnQn8zykYDqiMIHLbdVB80N+0MmaZbXjf7PDAu24W25AqVZx5BwEAbnzbQGanYq o+qmFr44jNKN1nanNCw5XxyQ2j69QjXSUydGndO6wCyt2CqdvhMHOj4HK1tC2Ay6F30c 3jKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=xwc2YfjLemz5OhHC/WcVgKF6K8BmT0iuYXH0LHXFG7U=; b=Z/1Wh2vNZgZSwK9iDtg1Zd+qTGB1JQmScqtncmVBqXFo8E1BePOCVuuiT4ZzbzZXMC hXhlRjxZvmFq2kDlqd11xYpWgnryKnE2jxsUdKPco4yEbxnvzYXfclhw61Db1/K7/UQJ msVHxEhQoFEPobTUJEc0ciawcvdZlRDcYygNfWZ6+bQSBoKhV90+1s4P/+O4FZT3CDte jQq5Kc6br3tpFAu2urFMwHsPkmc1d4ycCl4kRjf5lkW6gWxIA3Ntc2DrhKvxFga5RTcj GGIeL34vMzJyFmVj930qFKxJAxdhkEEydQfD5Bh7vjYYYe7dR8e0mSZ8X30aOp1ND5sE p5Vw== 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 t3si22403733pgl.108.2018.11.19.13.18.39; Mon, 19 Nov 2018 13:18:55 -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 S1730826AbeKTHnZ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Nov 2018 02:43:25 -0500 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:38553 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730091AbeKTHnZ (ORCPT ); Tue, 20 Nov 2018 02:43:25 -0500 Received: from mailgate02.nec.co.jp ([114.179.233.122]) by tyo162.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id wAJLGHvw001196 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 20 Nov 2018 06:16:17 +0900 Received: from mailsv01.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate02.nec.co.jp (8.15.1/8.15.1) with ESMTP id wAJLGH10031514; Tue, 20 Nov 2018 06:16:17 +0900 Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv01.nec.co.jp (8.15.1/8.15.1) with ESMTP id wAJLEkLl027588; Tue, 20 Nov 2018 06:16:17 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.137] [10.38.151.137]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-5708903; Tue, 20 Nov 2018 06:07:29 +0900 Received: from BPXM09GP.gisp.nec.co.jp ([10.38.151.201]) by BPXC09GP.gisp.nec.co.jp ([10.38.151.137]) with mapi id 14.03.0319.002; Tue, 20 Nov 2018 06:07:28 +0900 From: Kazuhito Hagio To: Bhupesh Sharma , "linux-kernel@vger.kernel.org" CC: Boris Petkov , Baoquan He , Ingo Molnar , Thomas Gleixner , Dave Anderson , James Morse , Omar Sandoval , "x86@kernel.org" , "kexec@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Subject: RE: [PATCH v2] x86_64, vmcoreinfo: Append 'page_offset_base' to vmcoreinfo Thread-Topic: [PATCH v2] x86_64, vmcoreinfo: Append 'page_offset_base' to vmcoreinfo Thread-Index: AQHUfSzksqNl5RpqX0mS8g+hu1PRe6VXaKBA Date: Mon, 19 Nov 2018 21:07:27 +0000 Message-ID: <4AE2DC15AC0B8543882A74EA0D43DBEC03560F84@BPXM09GP.gisp.nec.co.jp> References: <1542318469-13699-1-git-send-email-bhsharma@redhat.com> In-Reply-To: <1542318469-13699-1-git-send-email-bhsharma@redhat.com> Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [143.101.134.156] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/15/2018 4:47 PM, Bhupesh Sharma wrote: > Adding 'page_offset_base' to the vmcoreinfo can be specially useful for > live-debugging of a running kernel via user-space utilities > like makedumpfile (see [1]). I agree. > Recently, I saw an issue with the 'makedumpfile' utility (see [2] for > details), whose live debugging feature is broken with newer kernels > (I tested the same with 4.19-rc8+ kernel), as KCORE_REMAP segments were > added to kcore, thus leading to an additional sections in the same, and > makedumpfile is not longer able to determine the start of direct > mapping of all physical memory, as it relies on traversing the PT_LOAD > segments inside kcore and using the last PT_LOAD segment > to determine the start of direct mapping. Actually, the KCORE_REMAP segments were already removed from kcore by commit bf904d2762ee ("x86/pti/64: Remove the SYSCALL64 entry trampoline") and kcore's program headers got back to the previous ones, but this fact shows that they are changeable. So I think that if we have this NUMBER(page_offset_base) in vmcoreinfo for x86_64, user-space tools (especially makedumpfile) would become more stable against changes in kcore and vmcore, rather than depending on their PT_LOAD values. Thanks, Kazu