Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp850106pxk; Thu, 24 Sep 2020 22:26:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2vRaIfxINJTty/6vUOnOfnVXgDc3FNvb+boS+TW1nc99hYbSAxwwgdPev/zx999+1Zdnp X-Received: by 2002:a50:d591:: with SMTP id v17mr2296270edi.92.1601011619166; Thu, 24 Sep 2020 22:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601011619; cv=none; d=google.com; s=arc-20160816; b=JyWG2n6JT/S+s5Zv5F38ONAv4oXAbktU9cQ5pZ/XFn2rHRayRNdO7gA8V4KhWdy0// O8AazhAvvSkfP0r336e6oiZEcndOQOOsah/ykBciZwTtsdMTV39c93VtZhmcjEfpIuBG Ghw+QMsKJXmd4MSADlo3cCYJQGizV39CKjjaivnpecJ6f8j4ODfWB80n1SNB9hloua12 XvopXUz5fDCeeIW3KPZja185S1JgngE37nwcsUBbHg26wsBrbSd3PqfyGVck83udiSRF 9VUkIwvk8MFIUd9ADH46UC3iqeu3JyF6fUoDRWleV134xL/pEcpbSs/T6uGor5k74X9U h8zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qeVZ/oNWYrQPapNzlO3BHP5CuXNC3u8y+M6g9AfJmiM=; b=cQ51kOF+B4ajeggn/1e+syj+G7AIxlDFir6JfRrETg1IKvz26j7iEc+2bljatygOwe bWwqL+a0r13d0b46PGqKQ+boizuYUd6VwW4GhaiwoqpuSPcpqRJNyr9yX/iR51CgVQDk YRgXdwPLScIT/eZoW2B9E9yP1Tz1edeW0oyaIAAZ0uvsiUL33yWFP3Db4LNjoNQ8ZefW kvWra6+yONrjMg3JNOfBToQCRh7zcwYvOty3lU/sPUK3d+iC76i1g9ivopGyAVIcriA4 o51scka6QDwICEM/rLPxoswnWZB6RVyjS8xzMZB5q3DM8BiE7Ij4YJtqtbmYKNrhcXuO xWYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZJERDcnH; 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 n10si1140381ejb.405.2020.09.24.22.26.35; Thu, 24 Sep 2020 22:26:59 -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=ZJERDcnH; 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 S1727070AbgIYFXb (ORCPT + 99 others); Fri, 25 Sep 2020 01:23:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:44893 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbgIYFXb (ORCPT ); Fri, 25 Sep 2020 01:23:31 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601011409; 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: in-reply-to:in-reply-to:references:references; bh=qeVZ/oNWYrQPapNzlO3BHP5CuXNC3u8y+M6g9AfJmiM=; b=ZJERDcnHhftLlphUCzbgfO2qhJUvV8S+2Cp2ZWViDOQ6KmrWSLCIV6UR4xXI5p6oM5JKam tcMNk3/Od035L4Bq7d2rchJyO7TEAbNzgrXtSEGuYDvR0k+QLWHffQO2WvIyiQwo90CBSf LIxzwKL9j9GySNxh61gbX1gk2u9h770= Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-131-FW3B2X4bMgCBO7fufZsn8w-1; Fri, 25 Sep 2020 01:23:27 -0400 X-MC-Unique: FW3B2X4bMgCBO7fufZsn8w-1 Received: by mail-ot1-f70.google.com with SMTP id d10so450911otf.17 for ; Thu, 24 Sep 2020 22:23:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qeVZ/oNWYrQPapNzlO3BHP5CuXNC3u8y+M6g9AfJmiM=; b=pISehOsdbPYxkUrQnDbjIjZfQnwgI+vzLZ0C85nJ5Zwq3cf0i9y9NS7n/PO+02E6XJ m3ooZaIu1qaCxm1hSNEdr5BOqTuHEexdS3NZEnHla4AaCsbmcWBic07O5qZrID5GFIVt 8HeFtw4r1DD0ttN086PKsI5oz70aQ/FM/+Z8nW+aVRlFlIVuWEtDbqe0yG/JO62fVML7 KLVLmyxdsBRFKNzJ4q1bbh0FSAZ9Y3cvRscoRaLFO8hEWf10gaZ4aIgXuVOcG73kfZjO lMiGZ2apsXbpzbIsgoRrvVNqEsB2GbKhA2+sKcw0o4pJwM2kJUZvQ2amSMrzr+Pholu6 Bq0g== X-Gm-Message-State: AOAM532sg/QoRuD6ldLjU9mwprbu6X8+8Es7zFk6m3xpz88mlkdIHdTG jRWpXEAtkB429gUjFJrBaSRwbXjxREfhpjngWT4ERwe4u0poh+ZChm1OYG9cutmQdVJHL+kJMCB tNhZVYhdnmRXNoe6yHdjmeeZHwnw7/ksR4KUnaP2E X-Received: by 2002:aca:dc8b:: with SMTP id t133mr618402oig.158.1601011406272; Thu, 24 Sep 2020 22:23:26 -0700 (PDT) X-Received: by 2002:aca:dc8b:: with SMTP id t133mr618387oig.158.1601011405935; Thu, 24 Sep 2020 22:23:25 -0700 (PDT) MIME-Version: 1.0 References: <20200924124647.300080-1-egorenar@linux.ibm.com> In-Reply-To: <20200924124647.300080-1-egorenar@linux.ibm.com> From: Bhupesh Sharma Date: Fri, 25 Sep 2020 10:53:14 +0530 Message-ID: Subject: Re: [PATCH v2 1/1] kdump: append uts_namespace.name offset to VMCOREINFO To: Alexander Egorenkov Cc: RuiRui Yang , Baoquan He , Vivek Goyal , Kees Cook , kexec mailing list , Linux Kernel Mailing List , ktkhai@virtuozzo.com, Eric Biederman , Andrew Morton , christian.brauner@ubuntu.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexander, On Thu, Sep 24, 2020 at 6:18 PM Alexander Egorenkov wrote: > > The offset of the field 'init_uts_ns.name' has changed > since > > commit 9a56493f6942c0e2df1579986128721da96e00d8 > Author: Kirill Tkhai > Date: Mon Aug 3 13:16:21 2020 +0300 > > uts: Use generic ns_common::count A minor nitpick: You can add the following line to your .gitconfig: one = show -s --pretty='format:%h (\"%s\")' running a command '$ git one ' will then give you an abbreviated form to be used while referring to existing git commits in the log message. For e.g. in this case, the output would be something like: $ git one 9a56493f6942c0e2df1579986128721da96e00d8 9a56493f6942 ("uts: Use generic ns_common::count") Then you can use '9a56493f6942 ("uts: Use generic ns_common::count")' to refer to an existing upstream patch in the log message. But I think this can be fixed while applying the patch (if there are no further revisions required). > 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 > --- > kernel/crash_core.c | 1 + > 1 file changed, 1 insertion(+) > > 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); > -- > 2.26.2 Thanks for making the changes we discussed in the v1 review. Otherwise the patch looks fine to me, so: Reviewed-by: Bhupesh Sharma