Received: by 10.213.65.68 with SMTP id h4csp649103imn; Tue, 27 Mar 2018 06:20:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELvjOpenuJhJLHtRNQKpeuxPzATsb7nm5mkpxjTLlVE7fqin3rdv//MlSPQf/ZtxliPMChQY X-Received: by 2002:a17:902:68c2:: with SMTP id x2-v6mr35926766plm.129.1522156829909; Tue, 27 Mar 2018 06:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522156829; cv=none; d=google.com; s=arc-20160816; b=B4Snipf1/bIhqBvOcB3mTaeIpKAPjl7ENt0792QfOjCpbypfGQJw8lAsRCJs5/rXaa ATqfAXwN5hp+jKx5loQcfpMchGcNRt8GcbL789BfkmiSlOAt3hnh+4MDTa6Prl0dG/7c FUNqcOm3zNSawoR/8ocSEgkvC1eOfhal3HVXgWrgrZVLp3ur/XPEAho3zoDvmK/uGmbH xv/+E3c5Pv1yhBCk3x01Z4hKdUc4S8uoQlhr/Xl9A3PFlV2dKQ/Rcs0pO/YTahx0B+sK j6srSFNy1EwLqCu2+1cMVhSRlPmmB6ntuPDlzO90EcB4thBIBgW2iyau0x5tdF/4Lr5L 4m8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=1BIvFmw+hkF1jeuydhl+C6PWFF9okY7URcT5KSMZoG4=; b=MsEUrS8EkbuvwPqW149o/80sg+GUOT/QX6Ax5JiWB/btsO0xldHP+WDcBmC75AVnFO uQJMNujWQ2yqow3pvoXCYEC2BV7nQXOI6G8oN5rh9ss/syo/OMnZsE63oPL8EAxbq4H1 ZJ21bCnbs4Y1Ed14DBKQDpvyRg+KpRhBdrRc3pdwyiPwQwDTb9lN3OJQNnZHO+Zq4ci9 GXaQAWFws2LHDUPeBHtsylJXdNLTjwuhJT67sBXdJOXffyW1+/CignWfuPTdzHF+IwGQ 2bVCKBNrOjNG3ehbUjbZ3m8VPSj6V09n/uXBAp3EVq9E/QhaCS/H16uEn353ZBG8z0jy Gi8Q== 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 s20-v6si1209375plp.340.2018.03.27.06.20.15; Tue, 27 Mar 2018 06:20:29 -0700 (PDT) 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 S1752943AbeC0NSs (ORCPT + 99 others); Tue, 27 Mar 2018 09:18:48 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:45061 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752933AbeC0NSo (ORCPT ); Tue, 27 Mar 2018 09:18:44 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f0oUn-0006LH-7T; Tue, 27 Mar 2018 07:18:37 -0600 Received: from 67-3-145-25.omah.qwest.net ([67.3.145.25] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f0oUl-0001Zw-Sp; Tue, 27 Mar 2018 07:18:37 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Rahul Lakkireddy Cc: "netdev\@vger.kernel.org" , "linux-fsdevel\@vger.kernel.org" , "kexec\@lists.infradead.org" , "linux-kernel\@vger.kernel.org" , "davem\@davemloft.net" , "viro\@zeniv.linux.org.uk" , "stephen\@networkplumber.org" , "akpm\@linux-foundation.org" , "torvalds\@linux-foundation.org" , Ganesh GR , Nirranjan Kirubaharan , Indranil Choudhury References: <87muyxlctn.fsf@xmission.com> <20180326134539.GA15852@chelsio.com> Date: Tue, 27 Mar 2018 08:17:34 -0500 In-Reply-To: <20180326134539.GA15852@chelsio.com> (Rahul Lakkireddy's message of "Mon, 26 Mar 2018 19:15:40 +0530") Message-ID: <87k1txfyj5.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1f0oUl-0001Zw-Sp;;;mid=<87k1txfyj5.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=67.3.145.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19T/8wZIFf/cdqYM8uKr/peKZSNLfEUvvY= X-SA-Exim-Connect-IP: 67.3.145.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa03.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, XMSubLong autolearn=disabled version=3.4.0 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4930] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa03 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa03 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Rahul Lakkireddy X-Spam-Relay-Country: X-Spam-Timing: total 966 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 6 (0.6%), b_tie_ro: 4.4 (0.5%), parse: 2.3 (0.2%), extract_message_metadata: 34 (3.5%), get_uri_detail_list: 2.9 (0.3%), tests_pri_-1000: 17 (1.7%), tests_pri_-950: 3.9 (0.4%), tests_pri_-900: 2.8 (0.3%), tests_pri_-400: 44 (4.5%), check_bayes: 41 (4.2%), b_tokenize: 19 (1.9%), b_tok_get_all: 10 (1.0%), b_comp_prob: 5 (0.5%), b_tok_touch_all: 2.6 (0.3%), b_finish: 1.20 (0.1%), tests_pri_0: 827 (85.6%), check_dkim_signature: 1.48 (0.2%), check_dkim_adsp: 9 (0.9%), tests_pri_500: 17 (1.7%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH net-next v2 0/2] kernel: add support to collect hardware logs in crash recovery kernel X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rahul Lakkireddy writes: > On Saturday, March 03/24/18, 2018 at 20:50:52 +0530, Eric W. Biederman wrote: >> >> Rahul Lakkireddy writes: >> >> > On production servers running variety of workloads over time, kernel >> > panic can happen sporadically after days or even months. It is >> > important to collect as much debug logs as possible to root cause >> > and fix the problem, that may not be easy to reproduce. Snapshot of >> > underlying hardware/firmware state (like register dump, firmware >> > logs, adapter memory, etc.), at the time of kernel panic will be very >> > helpful while debugging the culprit device driver. >> > >> > This series of patches add new generic framework that enable device >> > drivers to collect device specific snapshot of the hardware/firmware >> > state of the underlying device in the crash recovery kernel. In crash >> > recovery kernel, the collected logs are exposed via /sys/kernel/crashdd/ >> > directory, which is copied by user space scripts for post-analysis. >> > >> > A kernel module crashdd is newly added. In crash recovery kernel, >> > crashdd exposes /sys/kernel/crashdd/ directory containing device >> > specific hardware/firmware logs. >> >> Have you looked at instead of adding a sysfs file adding the dumps >> as additional elf notes in /proc/vmcore? >> > > I see the crash recovery kernel's memory is not present in any of the > the PT_LOAD headers. So, makedumpfile is not collecting the dumps > that are in crash recovery kernel's memory. > > Also, are you suggesting exporting the dumps themselves as PT_NOTE > instead? I'll look into doing it this way. Yes. I was suggesting exporting the dumps themselves as PT_NOTE in /proc/vmcore. I think that will allow makedumpfile to collect your new information without modification. Eric