Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3930887imu; Mon, 14 Jan 2019 11:38:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN5kZ2mzZ24UERc9J9ueHO3xsLOBt7M5MnwCuB3AJYzTM6e8KCTPO4dua4HbeN7qAmupg0Vc X-Received: by 2002:a63:3858:: with SMTP id h24mr94256pgn.300.1547494694881; Mon, 14 Jan 2019 11:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547494694; cv=none; d=google.com; s=arc-20160816; b=Wm1HYOwvw3jFcy5MrwRVoi8JlBV6Ll2JB7hdP+UNLS72s2HUdbLG83HxcxpmNi9P40 0Ho0sYc59e3hsdSZWrRK06PqXb2FrDAlfaUwj+0L7d0Z60p7u1p39gWBio7Xld8M06dV 7lOmU5MzXpwVKAYA0Skyav/fpueGQojMfZP1n4GqSWkuqQgfOq5N3MTEFcosJLrh6oT5 BCRKIRpMVl9IrwlyKlPDSflaHN9lfu1/xYA9k/2jc2Yz89npSy4XusxiL3elI2cSPfCf BKy+277oPZjIWIhMk2HXCztlg7t/hMqp0Kpuu9VrIlFCH7TT3pTT0ENRVulzqEqaRqe5 rOfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=zaMqLykTm1/voUDhy+fhvnmz8mU/lom2H6GCVEfuX1w=; b=XgOor3Zyp3zgDjrJJO/BLWOYqIU+lFxFfnVS1OlX0P4wC8JF/dJata7PfjjFoSdbTj lmou6Ko6vOBwerl0MYx17HWF6J5RvaB3tMo5wEVU75/v9KryJP613iAl9Z0lN8wnkpe/ Wu9iZaLANQymxup1t0SJNWb2h2tcmLrPOfeVRf67K9rMcjMM4UTFflaqwSj893NrssMH dTmqAOxEltt6wWK5jTBlkv05KtwQ1QLX4va/O61+iSHD5gMs5744gW7Dv0AAM5vcMh5B x9MB4oyG7kQxpKVG/Soqck8qGwS6VLgDdz0D5Imr5ZrwFWIJWvdShzLv2ZBdQ8QCZ0rz HfXA== 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 b89si207002pfj.207.2019.01.14.11.37.59; Mon, 14 Jan 2019 11:38:14 -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 S1726871AbfANTgs (ORCPT + 99 others); Mon, 14 Jan 2019 14:36:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47388 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726753AbfANTgr (ORCPT ); Mon, 14 Jan 2019 14:36:47 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76DEABAEC; Mon, 14 Jan 2019 19:36:47 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5700661D19; Mon, 14 Jan 2019 19:36:47 +0000 (UTC) Received: from zmail24.collab.prod.int.phx2.redhat.com (zmail24.collab.prod.int.phx2.redhat.com [10.5.83.30]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 27A331800540; Mon, 14 Jan 2019 19:36:47 +0000 (UTC) Date: Mon, 14 Jan 2019 14:36:47 -0500 (EST) From: Dave Anderson To: Borislav Petkov Cc: Kazuhito Hagio , Lianbo Jiang , linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, akpm@linux-foundation.org, bhe@redhat.com, dyoung@redhat.com, linux-doc@vger.kernel.org Message-ID: <134663991.69764038.1547494607008.JavaMail.zimbra@redhat.com> In-Reply-To: <20190114192144.GQ2773@zn.tnic> References: <20190110121944.6050-1-lijiang@redhat.com> <20190110121944.6050-2-lijiang@redhat.com> <20190111123300.GE4729@zn.tnic> <4AE2DC15AC0B8543882A74EA0D43DBEC035661E8@BPXM09GP.gisp.nec.co.jp> <20190114180142.GO2773@zn.tnic> <2126185079.69727846.1547492312033.JavaMail.zimbra@redhat.com> <20190114192144.GQ2773@zn.tnic> Subject: Re: [PATCH 1/2 v6] kdump: add the vmcoreinfo documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.18.17.201, 10.4.195.21] Thread-Topic: kdump: add the vmcoreinfo documentation Thread-Index: br070a/lHN4Qz+xrY/Hw7icxEWLpbQ== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 14 Jan 2019 19:36:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Original Message ----- > On Mon, Jan 14, 2019 at 01:58:32PM -0500, Dave Anderson wrote: > > Preferably it would be left as-is. The crash utility has a "crash > > --osrelease vmcore" > > option that only looks at the dumpfile header, and just dump the string. > > With respect > > to compressed kdumps, crash could alternatively look at the utsname data > > that is stored > > in the diskdump_header.utsname field, but with ELF vmcores, there is no > > such back-up. > > Well, there is: > > 00000000 4f 53 52 45 4c 45 41 53 45 3d 35 2e 30 2e 30 2d |OSRELEASE=5.0.0-| > 00000010 72 63 32 2b 0a 50 41 47 45 53 49 5a 45 3d 34 30 |rc2+.PAGESIZE=40| > 00000020 39 36 0a 53 59 4d 42 4f 4c 28 6d 65 6d 5f 73 65 |96.SYMBOL(mem_se| > 00000030 63 74 69 6f 6e 29 3d 66 66 66 66 66 66 66 66 38 |ction)=ffffffff8| > 00000040 34 35 31 61 31 61 38 0a 53 59 4d 42 4f 4c 28 69 |451a1a8.SYMBOL(i| > 00000050 6e 69 74 5f 75 74 73 5f 6e 73 29 3d 66 66 66 66 |nit_uts_ns)=ffff| > ^^^^ > 00000060 66 66 66 66 38 32 30 31 33 35 34 30 0a 53 59 4d |ffff82013540 > ^^^^^^^^^^^^ > > This address has it. There's no reading of the dumpfile's memory involved, and that being the case, the vmlinux file is not utilized. That's the whole point of the crash option, i.e., taking a vmcore file, and trying to determine what kernel should be used with it: $ man crash ... --osrelease dumpfile Display the OSRELEASE vmcoreinfo string from a kdump dumpfile header. ... > > > What's the problem with leaving it alone? > > The problem is that I'd like to get all those vmcoreinfo exports under > control and to not have people frivolously export whatever they feel > like, for obvious reasons, and to get rid of the duplicate/unused pieces > being part of vmcoreinfo. Well, I just don't agree that the OSRELEASE item is "frivolous". It's been in place, and depended upon, for many years. Dave