Re: [PATCH v2] kdump: fix an error that can not parse the e820 reserved region

2018-10-07 Thread lijiang
在 2018年10月02日 20:02, Simon Horman 写道: > On Fri, Sep 07, 2018 at 09:05:50AM +0800, Dave Young wrote: >> On 09/06/18 at 01:56pm, Lianbo Jiang wrote: >>> When kexec-tools load the kernel and initramfs for kdump, kexec-tools will >>> read /proc/iomem and recreate the e820 ranges for kdump kernel. But

Re: [PATCH v2] kdump: fix an error that can not parse the e820 reserved region

2018-10-02 Thread Dave Young
On 10/02/18 at 02:02pm, Simon Horman wrote: > On Fri, Sep 07, 2018 at 09:05:50AM +0800, Dave Young wrote: > > On 09/06/18 at 01:56pm, Lianbo Jiang wrote: > > > When kexec-tools load the kernel and initramfs for kdump, kexec-tools will > > > read /proc/iomem and recreate the e820 ranges for kdump

Re: [PATCH v2] kdump: fix an error that can not parse the e820 reserved region

2018-10-02 Thread Simon Horman
On Fri, Sep 07, 2018 at 09:05:50AM +0800, Dave Young wrote: > On 09/06/18 at 01:56pm, Lianbo Jiang wrote: > > When kexec-tools load the kernel and initramfs for kdump, kexec-tools will > > read /proc/iomem and recreate the e820 ranges for kdump kernel. But it fails > > to parse the e820 reserved

Re: [PATCH v2] kdump: fix an error that can not parse the e820 reserved region

2018-09-06 Thread Dave Young
On 09/06/18 at 01:56pm, Lianbo Jiang wrote: > When kexec-tools load the kernel and initramfs for kdump, kexec-tools will > read /proc/iomem and recreate the e820 ranges for kdump kernel. But it fails > to parse the e820 reserved region, because the memcmp() is case sensitive > when comparing the

[PATCH v2] kdump: fix an error that can not parse the e820 reserved region

2018-09-05 Thread Lianbo Jiang
When kexec-tools load the kernel and initramfs for kdump, kexec-tools will read /proc/iomem and recreate the e820 ranges for kdump kernel. But it fails to parse the e820 reserved region, because the memcmp() is case sensitive when comparing the string. In fact, it may be "Reserved" or "reserved"