From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45013C38142 for ; Tue, 24 Jan 2023 10:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gjgFV+1lVteOonxTvjud42h9Y7neLge/3UQsDCkC/dk=; b=ltHIP2hP7T4dg1 feIquU0GKVslKadJXaM2OJuaP1scZJmucw4T0WpEZJNjheCyigJH6LI5fkhGPuUlTaYME2goiDKeM 8mkPGMqSEYjvX3DdMx/SjY6a/D7ejk5gpRgW0L8/u07tFEO60B7+ufa+fEfp5T4Rawtw0w/Afk/EW k/EMME17UQDqJviGGgBihHM+Yza1gm/ljSZNPGLlLm9JANIAPX4hdhSRMiTL1jVEA+USu+Rwoflsp QzUkhOGRIoHH23FijI9DKK40FeY4+M2OWGPfGIvmPJekPMNmBXWVjRaXTtkWr9HBwhIxGin59wwx7 pnAXC35yt0tUyLncalvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKG8U-00312C-3S; Tue, 24 Jan 2023 10:02:38 +0000 Received: from s1-smtprelay.thinkmo.de ([2a01:4f8:271:3f5c:2:25:0:1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKG8Q-00311h-Eb for linux-arm-kernel@lists.infradead.org; Tue, 24 Jan 2023 10:02:36 +0000 Received: from shell.thinkmo.de (unknown [IPv6:fd25:7475:fc82::22:0:1]) by s1-smtprelay.thinkmo.de (Postfix) with ESMTPS id 4P1Mw00bnxzFl for ; Tue, 24 Jan 2023 10:02:24 +0000 (UTC) Received: by shell.thinkmo.de (Postfix, from userid 1000) id 4P1Mw74jdMz29; Tue, 24 Jan 2023 11:02:31 +0100 (CET) Date: Tue, 24 Jan 2023 11:02:31 +0100 From: Bastian Blank To: linux-arm-kernel@lists.infradead.org Subject: Contents of /proc/vmcore unplausible on arm64 Message-ID: Mail-Followup-To: Bastian Blank , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230124_020234_688055_91313CC1 X-CRM114-Status: GOOD ( 11.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi On all arm64 kernel I tested recently, dumping a crashed kernel does not work with makedumpfile. I digged in and found that the information provided in /proc/vmcore from within the crashkernel is unplausible. The provided note section, containing the vmcoreinfo, is correct: | NOTE 0x0000000000001000 0x0000000000000000 0x0000000000000000 | 0x00000000000010dc 0x00000000000010dc 0x0 It starts at 0x1000 octets in the file and is 0x10dc octets long. But already the first load type program header is broken: | LOAD 0x0000000000003000 0xffffffffffffffff 0x00002bd6dc600000 | 0xffffd42b6b7e0000 0xffffd42b6b7e0000 RWE 0x0 The virtual address is -1. So somewhere might be an error condition. And also the sizes are completely bogus. And due to wrong virtual adresses, everything falls apart. I don't know that part of the kernel, nor the arm64 specifics. Do you have any idea how to debug that further? Regards, Bastian Mostly complete readelf output: | ELF Header: | Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 | Class: ELF64 | Data: 2's complement, little endian | Version: 1 (current) | OS/ABI: UNIX - System V | ABI Version: 0 | Type: CORE (Core file) | Machine: AArch64 | Version: 0x1 | Entry point address: 0x0 | Start of program headers: 64 (bytes into file) | Start of section headers: 0 (bytes into file) | Flags: 0x0 | Size of this header: 64 (bytes) | Size of program headers: 56 (bytes) | Number of program headers: 9 | Size of section headers: 0 (bytes) | Number of section headers: 0 | Section header string table index: 0 | | There are no sections in this file. | | There are no section groups in this file. | | Program Headers: | Type Offset VirtAddr PhysAddr | FileSiz MemSiz Flags Align | NOTE 0x0000000000001000 0x0000000000000000 0x0000000000000000 | 0x00000000000010dc 0x00000000000010dc 0x0 | LOAD 0x0000000000003000 0xffffffffffffffff 0x00002bd6dc600000 | 0xffffd42b6b7e0000 0xffffd42b6b7e0000 RWE 0x0 | LOAD 0xffffd42b6b7e3000 0x0000000000000000 0x0000000000000000 | 0x0000000000800000 0x0000000000800000 RWE 0x0 | LOAD 0xffffd42b6bfe3000 0x0000000000824000 0x0000000000824000 | 0x00000000151dc000 0x00000000151dc000 RWE 0x0 | LOAD 0xffffd42b811bf000 0x0000000035a00000 0x0000000035a00000 | 0x0000000009284000 0x0000000009284000 RWE 0x0 | LOAD 0xffffd42b8a443000 0x000000003ecad000 0x000000003ecad000 | 0x0000000001080000 0x0000000001080000 RWE 0x0 | LOAD 0xffffd42b8b4c3000 0x000000003fd81000 0x000000003fd81000 | 0x000000000000c000 0x000000000000c000 RWE 0x0 | LOAD 0xffffd42b8b4cf000 0x000000003fd91000 0x000000003fd91000 | 0x000000000026f000 0x000000000026f000 RWE 0x0 | LOAD 0xffffd42b8b73e000 0x0000000100000000 0x0000000100000000 | 0x00000001c0000000 0x00000001c0000000 RWE 0x0 | | There is no dynamic section in this file. | | There are no relocations in this file. | | The decoding of unwind sections for machine type AArch64 is not currently supported. | | Dynamic symbol information is not available for displaying symbols. | | No version information found in this file. | | Displaying notes found at file offset 0x00001000 with length 0x000010dc: | Owner Data size Description | CORE 0x00000188 NT_PRSTATUS (prstatus structure) | CORE 0x00000188 NT_PRSTATUS (prstatus structure) | VMCOREINFO 0x00000d8a Unknown note type: (0x00000000) -- In the strict scientific sense we all feed on death -- even vegetarians. -- Spock, "Wolf in the Fold", stardate 3615.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel