Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp97969rdd; Mon, 8 Jan 2024 19:51:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmDoEIT/QqA+/Lmk30/FlAMygjE/9f6G29by/qQemvFrdCGytcKnYNLxQHPz64iLqtvxAo X-Received: by 2002:a17:903:245:b0:1d4:cb30:4522 with SMTP id j5-20020a170903024500b001d4cb304522mr2485463plh.16.1704772265586; Mon, 08 Jan 2024 19:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704772265; cv=none; d=google.com; s=arc-20160816; b=dTz3CWXft14Ic3xe7B7iM1v3RxnUEjKZTfULcOqPzi1U/HerXOwB6clVn+qIYPpIPP 8ImW06tlgnQgQRhH6e7F5MQoHJt9Ixlu1R9he9lx6n5fWu4YgfL4o06XJ4Mdw8V3yOBd OPTzrWvPnOmLxNSbKR5OU7VE5/MEFSrtqhj4q8QmhZhCtY5Q3Imp0oyGPF8cQ+zsHVU+ E1t6alXz4/fFlN8c4B121lViagZPUFpgeywtuJYBnWMiArlLZLevK90ys297m23PF7Xy l2yexTPLp+mrN3ctrNUAdajXx7SdDQP6ckrC4+6uPXol2fmqR0uOJ+jT4l9R0IbUsGx4 F2Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=a0GQAZNSgQ9NYel79tdKOQqcnL4ZPX5GxjXGFUqL5FQ=; fh=JB7sOa12hAVf0OMkxYoI5woE5SjhAfsAcrgDhXaDNyM=; b=CMpAXhZInl3f9+scmy0D94NDr63uzkaMaMVZoqeQWlmhyZ3iH4aPX3z9W+Ifz76VJi 84yrJokhj6YSDi3K3Vt1FcAKDqlDqpT8VnsvuNyuXrdSu4ZZDRsJoZ2t4eKcQ6X6crjI pXkQF56xrkmuY8lpNiNnHtFdY3RB3/HvAefvNy9CNt1RLQm4CfG8nb/hViH4uVEay5lH R3kArmWWcDaIlNCY0HZyasgkY2vVPSFrvZlBZbhxqXq/xOt5cVrHz2OD70+9QVkFBAhz 6dWLECS7p40SYeIfd9LF1wtWPyb/JEuMx7QdGBo+cSlTnd/0t/9EsBBqfBUe6r5bfADc CQTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="e13/v2wN"; spf=pass (google.com: domain of linux-kernel+bounces-20348-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a10-20020a170902900a00b001d47fc37686si869543plp.90.2024.01.08.19.51.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 19:51:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20348-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="e13/v2wN"; spf=pass (google.com: domain of linux-kernel+bounces-20348-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 434D82815CA for ; Tue, 9 Jan 2024 03:51:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C2CB6103; Tue, 9 Jan 2024 03:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e13/v2wN" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3378729425 for ; Tue, 9 Jan 2024 03:50:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704772209; 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=a0GQAZNSgQ9NYel79tdKOQqcnL4ZPX5GxjXGFUqL5FQ=; b=e13/v2wN/YcjrNNSSG5Ws0edv9GxRJ5hmbbIjKYM+rasZOLO/xX95m6xCTvKEd11fbCj0O LL7YRqtg7jeCESCj3P1mDTV2/S2h4nF6vmGL0dpg6Z25lYMMZ1Oe2Y8GlWOhNaVTzFvfm+ Gp/L0bG51h/n0ow9Y/bEJQpVzhue9/o= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-445-z2OS85ljPFq20Ze8WhKemQ-1; Mon, 08 Jan 2024 22:50:00 -0500 X-MC-Unique: z2OS85ljPFq20Ze8WhKemQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 29B0285A588; Tue, 9 Jan 2024 03:49:59 +0000 (UTC) Received: from localhost (unknown [10.72.116.129]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FFC53C4F; Tue, 9 Jan 2024 03:49:57 +0000 (UTC) Date: Tue, 9 Jan 2024 11:49:54 +0800 From: Baoquan He To: kernel test robot Cc: linux-kernel@vger.kernel.org, oe-kbuild-all@lists.linux.dev, akpm@linux-foundation.org, kexec@lists.infradead.org, hbathini@linux.ibm.com, arnd@arndb.de, ignat@cloudflare.com, eric_devolder@yahoo.com, viro@zeniv.linux.org.uk, ebiederm@xmission.com, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 5/5] crash: clean up CRASH_DUMP Message-ID: References: <20240105103305.557273-6-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 On 01/07/24 at 09:19pm, kernel test robot wrote: > Hi Baoquan, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on linus/master] > [also build test ERROR on v6.7-rc8] > [cannot apply to powerpc/next powerpc/fixes tip/x86/core arm64/for-next/core next-20240105] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/kexec_core-move-kdump-related-codes-from-crash_core-c-to-kexec_core-c/20240105-223735 > base: linus/master > patch link: https://lore.kernel.org/r/20240105103305.557273-6-bhe%40redhat.com > patch subject: [PATCH 5/5] crash: clean up CRASH_DUMP > :::::: branch date: 2 days ago > :::::: commit date: 2 days ago > config: x86_64-randconfig-122-20240106 (https://download.01.org/0day-ci/archive/20240107/202401071326.52yn9Ftd-lkp@intel.com/config) > compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240107/202401071326.52yn9Ftd-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/r/202401071326.52yn9Ftd-lkp@intel.com/ Thanks for reporting. I have reproduced these linking errors, will consier how to rearrange code change and fix them. The thing splitting kdump out could be more complicated than I thought. > > All errors (new ones prefixed by >>): > > >> ld.lld: error: undefined symbol: crashk_res > >>> referenced by initramfs.c:638 (init/initramfs.c:638) > >>> init/initramfs.o:(kexec_free_initrd) in archive vmlinux.a > >>> referenced by initramfs.c:638 (init/initramfs.c:638) > >>> init/initramfs.o:(kexec_free_initrd) in archive vmlinux.a > >>> referenced by initramfs.c:0 (init/initramfs.c:0) > >>> init/initramfs.o:(kexec_free_initrd) in archive vmlinux.a > >>> referenced 77 more times > -- > >> ld.lld: error: undefined symbol: parse_crashkernel > >>> referenced by setup.c:479 (arch/x86/kernel/setup.c:479) > >>> arch/x86/kernel/setup.o:(arch_reserve_crashkernel) in archive vmlinux.a > -- > >> ld.lld: error: undefined symbol: crashk_low_res > >>> referenced by machine_kexec_64.c:539 (arch/x86/kernel/machine_kexec_64.c:539) > >>> arch/x86/kernel/machine_kexec_64.o:(kexec_mark_crashkres) in archive vmlinux.a > >>> referenced by machine_kexec_64.c:539 (arch/x86/kernel/machine_kexec_64.c:539) > >>> arch/x86/kernel/machine_kexec_64.o:(kexec_mark_crashkres) in archive vmlinux.a > >>> referenced by machine_kexec_64.c:539 (arch/x86/kernel/machine_kexec_64.c:539) > >>> arch/x86/kernel/machine_kexec_64.o:(kexec_mark_crashkres) in archive vmlinux.a > >>> referenced 36 more times > -- > >> ld.lld: error: undefined symbol: crash_update_vmcoreinfo_safecopy > >>> referenced by kexec_core.c:522 (kernel/kexec_core.c:522) > >>> kernel/kexec_core.o:(kimage_crash_copy_vmcoreinfo) in archive vmlinux.a > >>> referenced by kexec_core.c:610 (kernel/kexec_core.c:610) > >>> kernel/kexec_core.o:(kimage_free) in archive vmlinux.a > -- > >> ld.lld: error: undefined symbol: crash_save_vmcoreinfo > >>> referenced by kexec_core.c:1053 (kernel/kexec_core.c:1053) > >>> kernel/kexec_core.o:(__crash_kexec) in archive vmlinux.a > -- > >> ld.lld: error: undefined symbol: paddr_vmcoreinfo_note > >>> referenced by kexec_core.c:1148 (kernel/kexec_core.c:1148) > >>> kernel/kexec_core.o:(crash_prepare_elf64_headers) in archive vmlinux.a > -- > >> ld.lld: error: undefined symbol: append_elf_note > >>> referenced by kexec_core.c:1390 (kernel/kexec_core.c:1390) > >>> kernel/kexec_core.o:(crash_save_cpu) in archive vmlinux.a > -- > >> ld.lld: error: undefined symbol: final_note > >>> referenced by kexec_core.c:1392 (kernel/kexec_core.c:1392) > >>> kernel/kexec_core.o:(crash_save_cpu) in archive vmlinux.a > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki >