Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2553210rdg; Mon, 14 Aug 2023 06:21:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyvqX8N59vxcvylhP+rtdPk7wCznIJVy8gXLmht7FAqJHSYDUWkfIPAC8gkdA8NOFNAgGr X-Received: by 2002:aa7:d390:0:b0:522:4c7a:d5a9 with SMTP id x16-20020aa7d390000000b005224c7ad5a9mr6482944edq.3.1692019263595; Mon, 14 Aug 2023 06:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692019263; cv=none; d=google.com; s=arc-20160816; b=ywVdFFtFxYkuLCivRHnXhu9WsHIEGdyEehKNsOEllyb8+6nt4tirDVxXVPuZOcEnEr a8nU4s1HudjMRT+kN/VxE67XL2KFq9+cKxzy9KyoQdfWXRY11XGJ/g16UF84z5tT0MXn dSdAxHWzzIccrOzO6qd4dwFCYoAmZdJUK6Sg8stKADvHjs9QQgTxNDvUyYVd1gLkXGVu xihxIso0SdGOvyLEeovXYQ7eUipTCihyUg2IjDAL8rgBz70l48JXwdBN6EFb7HP7OdZh CJzq2qsUD1Xc4WKSRMiZo8HzlfCtTtIvOAKPTK4uE59hI7Uu+8+pZT/ju1xE9amrQtOM +gZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iPib/lh9E/0350WKyaqVCgZlJI05kTaUJ44RhzLtnZk=; fh=tk3j4ZEcAlrOJo0UPWm179ge9eQL86+znhRYXokJakQ=; b=gCrUxAln0xv6ACNEgsQQviifh4L+OlHDHQNNzDKPid8iUH9v+N7mi9ogEKzJCR3DHI Ld6na2Sanv9G7mb5hb7rn08cg/yx9yyB+RyVtORxusoVozS8YLRjFLh1iQF1SIXGdbfc x5+mxG/+UZeRRhkqCtIUotHegeFbQf0tYrEl2ZuCtXTgIKTaJSLCVNQLTdFNA+uhhfD3 O5XzB9zTSk7Htmc0wcMynEerhRWGRRIEtscinfW5yzyUr1i6LdeGXcc2maz2A5Z3z9hB J5dDvMXqtwaEx5r/sI47/8FYaypkhEY+DeMMin4oznaZk99l2oPjiiccl/7iiN1RFpNo 1asw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X6+gSkEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020aa7c506000000b005256700bd9dsi1618402edq.243.2023.08.14.06.20.38; Mon, 14 Aug 2023 06:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X6+gSkEf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbjHNMjm (ORCPT + 99 others); Mon, 14 Aug 2023 08:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjHNMjf (ORCPT ); Mon, 14 Aug 2023 08:39:35 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9E2F1711 for ; Mon, 14 Aug 2023 05:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692016713; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iPib/lh9E/0350WKyaqVCgZlJI05kTaUJ44RhzLtnZk=; b=X6+gSkEff1vEDwHbPFu0+NoQ3jDCMpe0McoTsz4QnimdBWaTogIrFraOdemggBPE+mZ7fa 33cej3s0q4L0F03yzfF+mYLXjp+G6lIrlYdTEbyD9cHlI+YRLSZnr4AnB5OdTY728TlBWF RqiPRnUbNdz7iuN1UcL5lQveBkONUKg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-582-Jlk5thxpNP-gGDO_w8E19w-1; Mon, 14 Aug 2023 08:38:28 -0400 X-MC-Unique: Jlk5thxpNP-gGDO_w8E19w-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D94128A2D09; Mon, 14 Aug 2023 12:38:05 +0000 (UTC) Received: from localhost (unknown [10.72.112.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 34DCA40C206F; Mon, 14 Aug 2023 12:38:04 +0000 (UTC) Date: Mon, 14 Aug 2023 20:38:00 +0800 From: "bhe@redhat.com" To: "Pandey, Radhey Shyam" Cc: "piliu@redhat.com" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Sarangi, Anirudha" Subject: Re: kexec reports "Cannot get kernel _text symbol address" on arm64 platform Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/23 at 01:27pm, Pandey, Radhey Shyam wrote: > > -----Original Message----- > > From: bhe@redhat.com > > Sent: Wednesday, August 9, 2023 7:42 AM > > To: Pandey, Radhey Shyam ; > > piliu@redhat.com > > Cc: kexec@lists.infradead.org; linux-kernel@vger.kernel.org > > Subject: Re: kexec reports "Cannot get kernel _text symbol address" on > > arm64 platform > > > > On 08/08/23 at 07:17pm, Pandey, Radhey Shyam wrote: > > > Hi, > > > > > > I am trying to bring up kdump on arm64 platform[1]. But I get "Cannot get > > kernel _text symbol address". > > > > > > Is there some Dump-capture kernel config options that I am missing? > > > > > > FYI, copied below complete kexec debug log. > > > > > > [1]: https://www.xilinx.com/products/boards-and-kits/vck190.html > > > > Your description isn't clear. You saw the printing, then your kdump kernel > > loading succeeded or not? > > > > If no, have you tried applying Pingfan's patchset and still saw the issue? > > > > [PATCHv7 0/5] arm64: zboot support > > https://lore.kernel.org/all/20230803024152.11663-1-piliu@redhat.com/T/#u > > I was able to proceed further with loading with crash kernel on triggering system crash. > echo c > /proc/sysrq-trigger > > But when I copy /proc/vmcore it throws memory abort. Also I see size of /proc/vmcore really huge (18446603353488633856). > Any possible guess on what could be wrong? I didn't reproduce this issue on a arm64 baremetal system with the latest kernel. From the log, It could be the iov_iter convertion patch which caused this. Can you revert below patch to see if it works? 5d8de293c224 vmcore: convert copy_oldmem_page() to take an iov_iter > > > [ 80.733523] Starting crashdump kernel... > [ 80.737435] Bye! > [ 0.000000] Booting Linux on physical CPU 0x0000000001 [0x410fd083] > [ 0.000000] Linux version 6.5.0-rc4-ge28001fb4e07 (radheys@xhdradheys41) (aarch64-xilinx-linux-gcc.real (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0.20220819) #23 SMP Fri Aug 11 16:25:34 IST 2023 > > > > > xilinx-vck190-20232:/run/media/mmcblk0p1# cat /proc/meminfo | head > MemTotal: 2092876 kB > MemFree: 1219928 kB > MemAvailable: 1166004 kB > Buffers: 32 kB > Cached: 756952 kB > SwapCached: 0 kB > Active: 1480 kB > Inactive: 24164 kB > Active(anon): 1452 kB > Inactive(anon): 24160 kB > xilinx-vck190-20232:/run/media/mmcblk0p1# cp /proc/vmcore dump > [ 975.284865] Unable to handle kernel level 3 address size fault at virtual address ffff80008d7cf000 > [ 975.293871] Mem abort info: > [ 975.296669] ESR = 0x0000000096000003 > [ 975.300425] EC = 0x25: DABT (current EL), IL = 32 bits > [ 975.305738] SET = 0, FnV = 0 > [ 975.308788] EA = 0, S1PTW = 0 > [ 975.311925] FSC = 0x03: level 3 address size fault > [ 975.316888] Data abort info: > [ 975.319763] ISV = 0, ISS = 0x00000003, ISS2 = 0x00000000 > [ 975.325245] CM = 0, WnR = 0, TnD = 0, TagAccess = 0 > [ 975.330292] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 > [ 975.335599] swapper pgtable: 4k pages, 48-bit VAs, pgdp=000005016ef6b000 > [ 975.342297] [ffff80008d7cf000] pgd=10000501eddfe003, p4d=10000501eddfe003, pud=10000501eddfd003, pmd=100005017b695003, pte=00687fff84000703 > [ 975.354827] Internal error: Oops: 0000000096000003 [#4] SMP > [ 975.360392] Modules linked in: > 3 975. > 63440] CBPrUo:a d0c aPID: 664 Comm: cp Tainted: G D 6.5.0-rc4-ge28001fb4e07 #23 > [ 975.372822] Hardware name: Xilinx Versal vck190 Eval board revA (DT) > [ 975.379165] pstate: a0000005 (NzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) > [ 975.386119] pc : __memcpy+0x110/0x230 > [ 975.389783] lr : _copy_to_iter+0x3d8/0x4d0 > [ 975.393874] sp : ffff80008dc939a0 > [ 975.397178] x29: ffff80008dc939a0 x28: ffff05013c1bea30 x27: 0000000000001000 > [ 975.404309] x26: 0000000000001000 x25: 0000000000001000 x24: ffff80008d7cf000 > [ 975.411440] x23: 0000040000000000 x22: ffff80008dc93ba0 x21: 0000000000001000 > [ 975.418570] x20: ffff000000000000 x19: 0000000000001000 x18: 0000000000000000 > [ 975.425699] x17: 0000000000000000 x16: 0000000000000000 x15: 0140000000000000 > [ 975.432829] x14: ffff8500a9919000 x13: 0040000000000001 x12: 0000fffef6831000 > [ 975.439958] x11: ffff80008d9cf000 x10: 0000000000000000 x9 : 0000000000000000 > [ 975.447088] x8 : ffff80008d7d0000 x7 : ffff0501addfd358 x6 : 0400000000000001 > [ 975.454217] x5 : ffff0501370e9000 x4 : ffff80008d7d0000 x3 : 0000000000000000 > [ 975.461346] x2 : 0000000000001000 x1 : ffff80008d7cf000 x0 : ffff0501370e8000 > [ 975.468476] Call trace: > [ 975.470912] __memcpy+0x110/0x230 > [ 975.474221] copy_oldmem_page+0x70/0xac > [ 975.478050] read_from_oldmem.part.0+0x120/0x188 > [ 975.482663] read_vmcore+0x14c/0x238 > [ 975.486231] proc_reg_read_iter+0x84/0xd8 > [ 975.490233] copy_splice_read+0x160/0x288 > [ 975.494236] vfs_splice_read+0xac/0x10c > [ 975.498063] splice_direct_to_actor+0xa4/0x26c > [ 975.502498] do_splice_direct+0x90/0xdc > [ 975.506325] do_sendfile+0x344/0x454 > [ 975.509892] __arm64_sys_sendfile64+0x134/0x140 > [ 975.514415] invoke_syscall+0x54/0x124 > [ 975.518157] el0_svc_common.constprop.0+0xc4/0xe4 > [ 975.522854] do_el0_svc+0x38/0x98 > [ 975.526162] el0_svc+0x2c/0x84 > [ 975.529211] el0t_64_sync_handler+0x100/0x12c > [ 975.533562] el0t_64_sync+0x190/0x194 > [ 975.537218] Code: cb01000e b4fffc2e eb0201df 540004a3 (a940342c) > [ 975.543302] ---[ end trace 0000000000000000 ]--- > t message from systemd-journald@xilinx-vck190-20232 (Tue 2022-11-08 14:16:20 UTC): > > kernel[539]: [ 975.354827] Internal error: Oops: 0000000096000003 [#4] SMP > > > Broadcast message from systemd-journald@xilinx-vck190-20232 (Tue 2022-11-08 14:16:20 UTC): > > kernel[539]: [ 975.537218] Code: cb01000e b4fffc2e eb0201df 540004a3 (a940342c) > > Segmentation fault > xilinx-vck190-20232:/run/media/mmcblk0p1# ls -lrth /proc/vmcore > -r-------- 1 root root 16.0E Nov 8 14:05 /proc/vmcore > xilinx-vck190-20232:/run/media/mmcblk0p1# ls -lh /proc/vmcore > -r-------- 1 root root 16.0E Nov 8 14:05 /proc/vmcore > xilinx-vck190-20232:/run/media/mmcblk0p1# ls -l /proc/vmcore > -r-------- 1 root root 18446603353488633856 Nov 8 14:05 /proc/vmcore > > Thanks, > Radhey >