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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 1E872EB64DD for ; Fri, 21 Jul 2023 03:51:51 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=icOHcffH; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4R6bGF519zz3bcH for ; Fri, 21 Jul 2023 13:51:49 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=icOHcffH; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=intel.com (client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=lkp@intel.com; receiver=lists.ozlabs.org) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4R6bFF1r4rz30JF for ; Fri, 21 Jul 2023 13:50:56 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689911457; x=1721447457; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JNp10Mt5clD02qyeJ6DeFQiC9FL/84T24RBmha8oF4M=; b=icOHcffHPLJaDR1lV6QSHj5WbJcQ0wExsWiav23Y7CFLL7vcEhLSMtY+ yUSah2FgkzNYIpEuTWuUmTdIGrMKI7ZK9z10+31XXn+wfMQXFacqPBBpX eUM5aPiv1X0F3SL88+eRU6VMc74cr72twC6gOYEoKeiUfvghjiCouX7nG wAdOaSc+VSOJgr07eS38M0ZHWsFEE2ImrnPphYMKw7Q9F8DMmEkGnzQyi gQPTExBr9k33Un0dzyH5Ge4KhHYtiyC3SohcHDcVZJMtTydI7cJYIUcLs 2YkH7gnc8NjgzGmM54ZzwhmOW9WdPFzwPOdE5QDgoxuEg8kNULsdGyskD A==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="433155814" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="433155814" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 20:50:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="838394843" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="838394843" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 20 Jul 2023 20:50:50 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qMhAC-0006ps-1l; Fri, 21 Jul 2023 03:50:45 +0000 Date: Fri, 21 Jul 2023 11:50:10 +0800 From: kernel test robot To: Mahesh J Salgaonkar , Michael Ellerman Subject: Re: [PATCH] kdump fix Message-ID: <202307211100.UDh0FQ50-lkp@intel.com> References: <2ogfzwjumrd44kxv7njfpot6fhtkzpqu77qv3bspfixdmsxcwc@umt35y2hmslm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ogfzwjumrd44kxv7njfpot6fhtkzpqu77qv3bspfixdmsxcwc@umt35y2hmslm> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin , Sourabh Jain , Sachin Sant , oe-kbuild-all@lists.linux.dev, linuxppc-dev , Hari Bathini Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi Mahesh, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.5-rc2 next-20230720] [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/Mahesh-J-Salgaonkar/kdump-fix/20230720-021115 base: linus/master patch link: https://lore.kernel.org/r/2ogfzwjumrd44kxv7njfpot6fhtkzpqu77qv3bspfixdmsxcwc%40umt35y2hmslm patch subject: [PATCH] kdump fix config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230721/202307211100.UDh0FQ50-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230721/202307211100.UDh0FQ50-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/oe-kbuild-all/202307211100.UDh0FQ50-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/kexec_file.c: In function 'crash_prepare_elf64_headers': >> kernel/kexec_file.c:1282:25: error: 'ELF_CORE_EFLAGS' undeclared (first use in this function) 1282 | ehdr->e_flags = ELF_CORE_EFLAGS; | ^~~~~~~~~~~~~~~ kernel/kexec_file.c:1282:25: note: each undeclared identifier is reported only once for each function it appears in vim +/ELF_CORE_EFLAGS +1282 kernel/kexec_file.c 1236 1237 int crash_prepare_elf64_headers(struct crash_mem *mem, int need_kernel_map, 1238 void **addr, unsigned long *sz) 1239 { 1240 Elf64_Ehdr *ehdr; 1241 Elf64_Phdr *phdr; 1242 unsigned long nr_cpus = num_possible_cpus(), nr_phdr, elf_sz; 1243 unsigned char *buf; 1244 unsigned int cpu, i; 1245 unsigned long long notes_addr; 1246 unsigned long mstart, mend; 1247 1248 /* extra phdr for vmcoreinfo ELF note */ 1249 nr_phdr = nr_cpus + 1; 1250 nr_phdr += mem->nr_ranges; 1251 1252 /* 1253 * kexec-tools creates an extra PT_LOAD phdr for kernel text mapping 1254 * area (for example, ffffffff80000000 - ffffffffa0000000 on x86_64). 1255 * I think this is required by tools like gdb. So same physical 1256 * memory will be mapped in two ELF headers. One will contain kernel 1257 * text virtual addresses and other will have __va(physical) addresses. 1258 */ 1259 1260 nr_phdr++; 1261 elf_sz = sizeof(Elf64_Ehdr) + nr_phdr * sizeof(Elf64_Phdr); 1262 elf_sz = ALIGN(elf_sz, ELF_CORE_HEADER_ALIGN); 1263 1264 buf = vzalloc(elf_sz); 1265 if (!buf) 1266 return -ENOMEM; 1267 1268 ehdr = (Elf64_Ehdr *)buf; 1269 phdr = (Elf64_Phdr *)(ehdr + 1); 1270 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); 1271 ehdr->e_ident[EI_CLASS] = ELFCLASS64; 1272 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; 1273 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 1274 ehdr->e_ident[EI_OSABI] = ELF_OSABI; 1275 memset(ehdr->e_ident + EI_PAD, 0, EI_NIDENT - EI_PAD); 1276 ehdr->e_type = ET_CORE; 1277 ehdr->e_machine = ELF_ARCH; 1278 ehdr->e_version = EV_CURRENT; 1279 ehdr->e_phoff = sizeof(Elf64_Ehdr); 1280 ehdr->e_ehsize = sizeof(Elf64_Ehdr); 1281 ehdr->e_phentsize = sizeof(Elf64_Phdr); > 1282 ehdr->e_flags = ELF_CORE_EFLAGS; -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki