Return-path: Received: from mail-iw0-f182.google.com ([209.85.223.182]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NfHeq-00048f-Ny for kexec@lists.infradead.org; Wed, 10 Feb 2010 18:51:33 +0000 Received: by iwn12 with SMTP id 12so352092iwn.26 for ; Wed, 10 Feb 2010 10:51:27 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <74ae4f6a1002101046y5faeacebxdf822eac8ccf6c98@mail.gmail.com> References: <74ae4f6a1002051845i6a2787deve82963c5d258eda4@mail.gmail.com> <4B6D393A.7060103@bwalle.de> <74ae4f6a1002101046y5faeacebxdf822eac8ccf6c98@mail.gmail.com> Date: Wed, 10 Feb 2010 10:51:27 -0800 Message-ID: <74ae4f6a1002101051n6157f09en17a4ec2b8fe075c9@mail.gmail.com> Subject: Re: kdump cp /proc/vmcore exiting with "Invalid Argument" Error From: Sujit V List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Bernhard Walle , SUJIT V Cc: fastboot@lists.linux-foundation.org, kexec@lists.infradead.org Wanted to point out that /proc/vmcore existed... kdump command >ls -l /proc/vmcore -r-------- 1 0 0 4153763584 Feb 10 18:50 /proc/vmcore On Wed, Feb 10, 2010 at 10:46 AM, Sujit V wrote: > Tried readelf on the /proc/vmcore but gave the below error. The > readelf worked correctly on another binary. > > kdump shell>/sbin/readelf -l /proc/vmcore > readelf: Error: Cannot stat input file /proc/vmcore. > > > Anything else I could try.? > > > On Sat, Feb 6, 2010 at 1:41 AM, Bernhard Walle wrote: >> >> >> >> Am 06.02.2010 03:45, schrieb Sujit V: >>> I have integrated the kdump in our linux 2.6.23 based kernel. If I do >>> echo c > /proc/sysrq-trigger then it boots the kdump kernel & I use >>> the cp /proc/vmcore /local/crash/vmcore-incomplete >>> >>> On a new x86 based hardware (32 bit PAE kernel) =A0the "cp /proc/vmcore >>> " command exits prematurely. >>> >>> cp -v /proc/vmcore /local/crash/vmcore-incomplete >>> =A0 =A0 =A0 cp: reading `/proc/vmcore': Invalid argument =A0>>> Error >> >>> >>> ls -l /local/crash/ >>> total 115588 >>> -r-------- =A0 =A01 0 =A0 =A0 =A0 =A00 =A0 =A0 =A0 =A02526724096 Feb = =A05 03:09 vmcore-incomplete >>> >>> ls -l /proc/vmcore >>> -r-------- =A0 =A01 0 =A0 =A0 =A0 =A00 =A0 =A0 =A0 =A04153763584 Feb = =A05 03:16 /proc/vmcore >>> >>> >>> Every time I trigger kdump the cp command exits after copying >>> 2526724096 bytes. So I thought it might be a file size issue. >>> Googling pointed out a patch in include/linux/proc_fs.h >> >> I would compare 'readelf -l /proc/vmcore' (ELF program headers) and map >> the file offset 2526724096 to the physical memory that belongs to that >> file offset. Maybe accessing that physical memory fails for some reason. >> >>> struct vmcore { >>> struct list_head list; >>> unsigned long long paddr; >>> - unsigned long size; >>> + unsigned long long size; >>> loff_t offset; >>> >>> I checked my kernel & it already has this patch. >> >> I don't think that this is the problem because 2526724096 is between 2G >> and 4G, so it doesn't point to some "magic border". >> >> >> Regards, >> Bernhard >> >> >> > _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec