Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp967866pxk; Thu, 1 Oct 2020 19:41:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNkJDnnllW1cI3Xfl8PoXdUne2iP6ryptSKZesHhhEyzdAlLdBzevazVsk75lfZOK2KKaE X-Received: by 2002:a17:906:6409:: with SMTP id d9mr11041166ejm.344.1601606475515; Thu, 01 Oct 2020 19:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601606475; cv=none; d=google.com; s=arc-20160816; b=uv9AtKwvPdghXuTI1pVyc9SZ+XkEvkMo3Ty3QSeRowai7SkJjqjb3jLMQrpbeuxFPK iPMqHNbdBv1+IzUSFHqMmCpnxd6kuN7RK4vqAZr4EuPTKy3nOSO0FPRdczw1tE5xACpD rIZ9O6djdrm7M1WAYba5U9NXIbJofTFcEDkTTIIGxbR5EaEMF0I7yI8KFOxIoDjYLZIb Sd+vLFX58Cxw4QdNj3d2HPHRT3Ak3u2M0nKGTCIxxvanCnP3j6g4IlXJsqSgM3pNone4 9GuKhptvN2iohwcZGzamGotp3BDVAOH+Gu8t5af2oS/KmGpU/str7Ln5V4MlMRlX05An ffnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=cxlJZv7250vMcqPC75U7W1SFNvc/Tb2JnKg+PXp0UTA=; b=VLw7Uzl7TUC0RaPu8Ged/QjSheZl6BpTk7QnvlfsTq3zg2xcDWxQnwrztqv9HO5u+H wuTWSxCNQGlNiMpxEzwpdPFkWwJhJgyro0fp1HHKnGVXSGOU9iI/6VYaZn5JK7ojhYH3 WvNbW6xgikaKTetKE74yCchb3vwjrfiS7uTEXLPT8LFX/V+kNR8JZTJGDbQtjFmBMade vr/nfSESs+pgwkZRToqWZjQg3k64J94ga5u3GjX9LoReiQJK3/FDMhY98waemqq//equ L1GhBBy8xHqsQZ6VtPHSMdFBJjr0Yl2w05DbqJ/Jd0ab7AXKlIdH/xISv53ms22Ov7Z/ wpkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bL9OwdYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si10069edu.330.2020.10.01.19.40.49; Thu, 01 Oct 2020 19:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bL9OwdYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387498AbgJBCik (ORCPT + 99 others); Thu, 1 Oct 2020 22:38:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:33822 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727780AbgJBCik (ORCPT ); Thu, 1 Oct 2020 22:38:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601606318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cxlJZv7250vMcqPC75U7W1SFNvc/Tb2JnKg+PXp0UTA=; b=bL9OwdYzX85ajE3HtRD6JQ43+znGCqqkCDjFgdNeHZQtiMjngpltwpbnMQIN+eIYgpsBTH Q1IaVM6HUuxkMnDKAiCHBQ7gLi7wZIocNOiqI1A4tcCMO5Y0EjzZwr0PZ+KG6WpY6s6BhJ vwdX9dn9h9gkcliwq8pDtbdSTWVPFrA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-44-1hUTvxLqMkSdmAJGzjDrFw-1; Thu, 01 Oct 2020 22:38:35 -0400 X-MC-Unique: 1hUTvxLqMkSdmAJGzjDrFw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0ED971074660; Fri, 2 Oct 2020 02:38:34 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-79.pek2.redhat.com [10.72.12.79]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B7995D9D3; Fri, 2 Oct 2020 02:38:26 +0000 (UTC) Subject: Re: [PATCH v3 1/1] kdump: append uts_namespace.name offset to VMCOREINFO To: Alexander Egorenkov , dyoung@redhat.com, bhe@redhat.com, vgoyal@redhat.com Cc: ebiederm@xmission.com, akpm@linux-foundation.org, ktkhai@virtuozzo.com, keescook@chromium.org, christian.brauner@ubuntu.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200930102328.396488-1-egorenar@linux.ibm.com> From: lijiang Message-ID: <60526b10-35eb-b6ba-b08d-70ebfe5d07b5@redhat.com> Date: Fri, 2 Oct 2020 10:38:22 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200930102328.396488-1-egorenar@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Alexander 在 2020年09月30日 18:23, Alexander Egorenkov 写道: > The offset of the field 'init_uts_ns.name' has changed > since commit 9a56493f6942 ("uts: Use generic ns_common::count"). > > Link: https://lore.kernel.org/r/159644978167.604812.1773586504374412107.stgit@localhost.localdomain > > Make the offset of the field 'uts_namespace.name' available > in VMCOREINFO because tools like 'crash-utility' and > 'makedumpfile' must be able to read it from crash dumps. > > Signed-off-by: Alexander Egorenkov > --- > > v2 -> v3: > * Added documentation to vmcoreinfo.rst > * Use the short form of the commit reference > > v1 -> v2: > * Improved commit message > * Added link to the discussion of the uts namespace changes > > Documentation/admin-guide/kdump/vmcoreinfo.rst | 6 ++++++ > kernel/crash_core.c | 1 + > 2 files changed, 7 insertions(+) > > diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst > index e44a6c01f336..3861a25faae1 100644 > --- a/Documentation/admin-guide/kdump/vmcoreinfo.rst > +++ b/Documentation/admin-guide/kdump/vmcoreinfo.rst > @@ -39,6 +39,12 @@ call. > User-space tools can get the kernel name, host name, kernel release > number, kernel version, architecture name and OS type from it. > > +(uts_namespace, name) > +--------------------- > + > +Offset of the name's member. Crash Utility and Makedumpfile get > +the start address of the init_uts_ns.name from this. > + Thank you for the update. The v3 looks good to me. > node_online_map > --------------- > > diff --git a/kernel/crash_core.c b/kernel/crash_core.c > index 106e4500fd53..173fdc261882 100644 > --- a/kernel/crash_core.c > +++ b/kernel/crash_core.c > @@ -447,6 +447,7 @@ static int __init crash_save_vmcoreinfo_init(void) > VMCOREINFO_PAGESIZE(PAGE_SIZE); > > VMCOREINFO_SYMBOL(init_uts_ns); > + VMCOREINFO_OFFSET(uts_namespace, name); > VMCOREINFO_SYMBOL(node_online_map); > #ifdef CONFIG_MMU > VMCOREINFO_SYMBOL_ARRAY(swapper_pg_dir); >