Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1607300
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Xunlei Pang <xpang@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section |
| Date | Thu, 23 Mar 2017 10:30:03 +0100 |
| Message-ID | <to7eb-eW-43@gated-at.bofh.it> (permalink) |
| References | <tmYmB-8E-1@gated-at.bofh.it> <tniOl-60Q-11@gated-at.bofh.it> <tnEOR-4iL-3@gated-at.bofh.it> <tnF8e-4xC-17@gated-at.bofh.it> <tnGdX-5jj-11@gated-at.bofh.it> <tnVmG-8m4-19@gated-at.bofh.it> |
| Dmarc-Filter | OpenDMARC Filter v1.3.2 mx1.redhat.com 640C6437F7C |
| Authentication-Results | ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com |
| Authentication-Results | ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=xpang@redhat.com |
| Dkim-Filter | OpenDKIM Filter v2.11.0 mx1.redhat.com 640C6437F7C |
| Reply-To | xlpang@redhat.com |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Scanned-By | MIMEDefang 2.79 on 10.5.11.11 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 23 Mar 2017 09:21:11 +0000 (UTC) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 71 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Baoquan He <bhe@redhat.com>, Xunlei Pang <xlpang@redhat.com>, Atsushi Kumagai <ats-kumagai@wm.jp.nec.com>, Petr Tesarik <ptesarik@suse.cz>, linux-kernel@vger.kernel.org, "Eric W. Biederman" <ebiederm@xmission.com>, hbathini@linux.vnet.ibm.com, akpm@linux-foundation.org, kexec@lists.infradead.org |
| X-Original-Date | Thu, 23 Mar 2017 17:23:53 +0800 |
| X-Original-Message-ID | <58D39429.9020200@redhat.com> |
| X-Original-References | <1489989033-1179-1-git-send-email-xlpang@redhat.com> <87pohbz4lo.fsf@xmission.com> <20170322025536.GA4424@dhcp-128-65.nay.redhat.com> <87pohaxam1.fsf@xmission.com> <20170322043004.GB4424@dhcp-128-65.nay.redhat.com> <20170322214819.0b64d49c@TP-holzheu> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1607300 |
Show key headers only | View raw
On 03/23/2017 at 04:48 AM, Michael Holzheu wrote:
> Am Wed, 22 Mar 2017 12:30:04 +0800
> schrieb Dave Young <dyoung@redhat.com>:
>
>> On 03/21/17 at 10:18pm, Eric W. Biederman wrote:
>>> Dave Young <dyoung@redhat.com> writes:
>>>
> [snip]
>
>>>> I think makedumpfile is using it, but I also vote to remove the
>>>> CRASHTIME. It is better not to do this while crashing and a makedumpfile
>>>> userspace patch is needed to drop the use of it.
>>>>
>>>>> As we are looking at reliability concerns removing CRASHTIME should make
>>>>> everything in vmcoreinfo a boot time constant. Which should simplify
>>>>> everything considerably.
>>>> It is a nice improvement..
>>> We also need to take a close look at what s390 is doing with vmcoreinfo.
>>> As apparently it is reading it in a different kind of crashdump process.
>> Yes, need careful review from s390 and maybe ppc64 especially about
>> patch 2/3, better to have comments from IBM about s390 dump tool and ppc
>> fadump. Added more cc.
> On s390 we have at least an issue with patch 1/3. For stand-alone dump
> and also because we create the ELF header for kdump in the new
> kernel we save the pointer to the vmcoreinfo note in the old kernel on a
> defined memory address in our absolute zero lowcore.
>
> This is done in arch/s390/kernel/setup.c:
>
> static void __init setup_vmcoreinfo(void)
> {
> mem_assign_absolute(S390_lowcore.vmcore_info, paddr_vmcoreinfo_note());
> }
>
> Since with patch 1/3 paddr_vmcoreinfo_note() returns NULL at this point in
> time we have a problem here.
>
> To solve this - I think - we could move the initialization to
> arch/s390/kernel/machine_kexec.c:
>
> void arch_crash_save_vmcoreinfo(void)
> {
> VMCOREINFO_SYMBOL(lowcore_ptr);
> VMCOREINFO_SYMBOL(high_memory);
> VMCOREINFO_LENGTH(lowcore_ptr, NR_CPUS);
> mem_assign_absolute(S390_lowcore.vmcore_info, paddr_vmcoreinfo_note());
> }
>
> Probably related to this is my observation that patch 3/3 leads to
> an empty VMCOREINFO note for kdump on s390. The note is there ...
>
> # readelf -n /var/crash/127.0.0.1-2017-03-22-21:14:39/vmcore | grep VMCORE
> VMCOREINFO 0x0000068e Unknown note type: (0x00000000)
>
> But it contains only zeros.
Yes, this is a good catch, I will do more tests.
Thanks,
Xunlei
>
> Unfortunately I have not yet understood the reason for this.
>
> Michael
>
>
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Xunlei Pang <xlpang@redhat.com> - 2017-03-20 06:50 +0100
[PATCH v3 2/3] powerpc/fadump: Use the correct VMCOREINFO_NOTE_SIZE for phdr Xunlei Pang <xlpang@redhat.com> - 2017-03-20 07:00 +0100
[PATCH v3 3/3] kdump: Relocate vmcoreinfo to the crash memory range Xunlei Pang <xlpang@redhat.com> - 2017-03-20 07:00 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section ebiederm@xmission.com (Eric W. Biederman) - 2017-03-21 04:40 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Dave Young <dyoung@redhat.com> - 2017-03-22 04:10 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section ebiederm@xmission.com (Eric W. Biederman) - 2017-03-22 04:30 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Dave Young <dyoung@redhat.com> - 2017-03-22 05:40 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Xunlei Pang <xpang@redhat.com> - 2017-03-22 10:40 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Hari Bathini <hbathini@linux.vnet.ibm.com> - 2017-03-22 13:20 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Hari Bathini <hbathini@linux.vnet.ibm.com> - 2017-03-22 12:50 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Michael Holzheu <holzheu@linux.vnet.ibm.com> - 2017-03-22 21:50 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Xunlei Pang <xpang@redhat.com> - 2017-03-23 10:30 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Michael Holzheu <holzheu@linux.vnet.ibm.com> - 2017-03-23 18:50 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Xunlei Pang <xpang@redhat.com> - 2017-03-24 12:10 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Xunlei Pang <xpang@redhat.com> - 2017-03-22 10:00 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Xunlei Pang <xpang@redhat.com> - 2017-03-22 10:20 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Xunlei Pang <xpang@redhat.com> - 2017-03-22 10:30 +0100
Re: [PATCH v3 1/3] kexec: Move vmcoreinfo out of the kernel's .bss section Petr Tesarik <ptesarik@suse.cz> - 2017-03-21 10:30 +0100
csiph-web