Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp286062pxk; Thu, 24 Sep 2020 05:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz9oTqZ/IshLux/xSUwv1cjANGLRmqCiTCROuKgm7tiNPEDXNEVe5emsFgigB3aKIfdE0E X-Received: by 2002:a50:fa81:: with SMTP id w1mr880748edr.122.1600951904028; Thu, 24 Sep 2020 05:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600951904; cv=none; d=google.com; s=arc-20160816; b=0JZInXNxgGeooWPb9nrHJjkOlWvEfVqbBKyATfzHcU2GiV5eqw7t+D8QR/RO7atG4F ida25uYwqMrCV9v5F5YSEDwxZd6cpkVU/5Q4Kp3Ne8qLBhvrQiZ/HigcBxXt4r/9yLBb a02jLamXb/zs3lZ878DNjN1hmGkwYNQQl+5DUuAnnlhaLDUaAjOeJ/QrJ063+FnOZNCd B30frF5Pnb2nzy+fyz2oDOnTeYNdybWuddd55rmoK8PpSZLhaXyqoazv4jN7jdcznxHk CX+kd6pJo3W2dcuLwgC7eG2FbnctD7CXAFII4XoM1UEXqAqZLnuondXzd670TaC+qNBr SmqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qQrYYa0Fz8zvGS/ETimspZ0IXWq9z6yIxTrOcbkxEV8=; b=CZvqZaOIsuRmDUa8Q2FIY7BTw7OWbdn0HO4jb/RsQh0jC9oBhLt9UR2uHDJWM21k9u ORJA2sU2xBfzj9nh4vhwQAy/yQY0cloON45o2d5+P1Q8SYBAusA9fx7jmQvVCbGc5E8H R2E/HDlbolVmCp5lPFGNmWZRPwGhN88xH6d0FznjmM7ngxKwdE4xgDzC3U2U9MAuDCAi /8EJ3hPIT2KZGiS1/4DfBDMvUWgCgh4xG2WpdUrsuo/oXRPcdR13U0Ewd56WueQTDAg2 KFL/60JIin68QoMJp+RgGEjPDtD0PiPzRpiII4Bw0cxQ5e6xugkIhiWM/dqzh/QXYf+U cZ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oHXYEtbB; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si2266126edr.29.2020.09.24.05.51.20; Thu, 24 Sep 2020 05:51:44 -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=@ibm.com header.s=pp1 header.b=oHXYEtbB; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727898AbgIXMsH (ORCPT + 99 others); Thu, 24 Sep 2020 08:48:07 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:62956 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727770AbgIXMsB (ORCPT ); Thu, 24 Sep 2020 08:48:01 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08OCZEjl099148; Thu, 24 Sep 2020 08:47:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=qQrYYa0Fz8zvGS/ETimspZ0IXWq9z6yIxTrOcbkxEV8=; b=oHXYEtbBpWt1cvEclqy8jUZ6OqJNZDHJokCySLmUb8DoOCcrkUnhsP0vfdz5KyK5A1Ow cHicdfZYwHob6AvuST7jSz1QW/JzKW7YPVh3jYzaGfjZYfKOesm6r4w3rLnhHaeMIZjt lpWr8AEbK+YryduLfAiQPPAwMKNsLfx1PzuAG4JP7ypWBlbTVU3kJyl4x5NGKeW0RU5r GP5pfZtd1jnFk9Nf6apd1CZgo9ARriYKU63esle/gQQJh/11jcZ1jpfSrBL+MLrFdPy8 iXizBYmlZVuH9jDYwtgHoXHTrbOT9gc6SwxFMbT0QgZTnlYw7sGeAtfMl+NwYlJ1rcyq hQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 33rtuahw87-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Sep 2020 08:47:54 -0400 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 08OCZUbC100376; Thu, 24 Sep 2020 08:47:53 -0400 Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 33rtuahw6v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Sep 2020 08:47:53 -0400 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 08OCllaG014729; Thu, 24 Sep 2020 12:47:50 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06fra.de.ibm.com with ESMTP id 33n98gtqvh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Sep 2020 12:47:50 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 08OClmk631916404 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Sep 2020 12:47:48 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 59F5711C04C; Thu, 24 Sep 2020 12:47:48 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5C6D711C054; Thu, 24 Sep 2020 12:47:47 +0000 (GMT) Received: from oc8242746057.ibm.com.com (unknown [9.171.75.6]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 24 Sep 2020 12:47:47 +0000 (GMT) From: Alexander Egorenkov To: 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, Alexander Egorenkov Subject: [PATCH v2 1/1] kdump: append uts_namespace.name offset to VMCOREINFO Date: Thu, 24 Sep 2020 14:46:47 +0200 Message-Id: <20200924124647.300080-1-egorenar@linux.ibm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-24_08:2020-09-24,2020-09-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 bulkscore=0 suspectscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 spamscore=0 mlxscore=0 phishscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240097 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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