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 E60EDCF9C6B for ; Tue, 24 Sep 2024 15:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/vBnzq9jTAk6gMOFxzWZEtIYeHAlC8qcc7k0Vl+unoQ=; b=Xe0XQig6+Wbi6JxRXLr5n3votC SQ5MebyswS+ofdoho78n3CmFq6Er201FTKVdSAgKjjUK+SFIlJm8fJ2A7tOvgBo8ATDSw7YB76bQ4 DjgBbcLHss8tXdlJI7LQjvhqrUSc/xnLF78IRJQT21YwI3g63z+CEVgV62coKz0oBF8z4SYmrjCmr yS9/x6YHSdi23BHPM3qwxoD0IaHhLbIQ27uhaKjbs8QFOiBFQ6TEj89WnhYKIZBCSag0DnTTxM5ne uhnVZ8dDzYtTJLlWt4y0QCS71nl31b0cxHbWi+nLi2rlFz2/fZK30HouFg+Xgrm/bz/4GeNLDc1XH JR8fs0zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1st7Al-00000002d70-16Oy; Tue, 24 Sep 2024 15:09:51 +0000 Received: from mgamail.intel.com ([198.175.65.10]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1st78S-00000002cgf-4BNq for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2024 15:07:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727190449; x=1758726449; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9BUREG+H48qxEiAFJ9joDvMquHrNiWatRuMKp6Dg5sk=; b=jKmvm3+4X975/ICvVukVl6AIcnLq0N3INo+Q0/pgxVoK5VHYhYgO+pEJ +4IQgj8Wlr9WYUPrmP74xFGbbY+jpceVIN3cigVTzZuBOV7mF+/HNO46t ONKue+ChpuyoovfVWMFPdHa9N2JRFTYohT3+0dU9gkeINYm9kXtsu4h4Q OD5pw9BDdQHhu/WbbjHUk/TMeKYQuKE8PTeQ3WdpSMRF93b4A2WFys2Yz Jw7fByltHcgLqkgH2BXRaBYDbxEkfHXfekdqqAZnvvGVRn5xn6XMO0AFm wR2ZuXgnAVOqq4cCe9pCjwQTYTXjK1sYiWNQl/FHMhoW2SoAb7opZEEdZ w==; X-CSE-ConnectionGUID: 1r0Wop1rTDCrP7VpUoYTog== X-CSE-MsgGUID: lZYynPE3Rhmn+rozFKBkdA== X-IronPort-AV: E=McAfee;i="6700,10204,11205"; a="43661865" X-IronPort-AV: E=Sophos;i="6.10,254,1719903600"; d="scan'208";a="43661865" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2024 08:07:26 -0700 X-CSE-ConnectionGUID: JVVoS/FvSAOXqdjKE4J5fw== X-CSE-MsgGUID: oRV4arL3QeuhUr/0A8oO/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,254,1719903600"; d="scan'208";a="71741773" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 24 Sep 2024 08:07:23 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1st78L-000ITY-0D; Tue, 24 Sep 2024 15:07:21 +0000 Date: Tue, 24 Sep 2024 23:06:50 +0800 From: kernel test robot To: "qiwu.chen" , corbet@lwn.net, oleg@redhat.com, catalin.marinas@arm.com, will@kernel.org, paulmck@kernel.org, akpm@linux-foundation.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, "qiwu.chen" Subject: Re: [PATCH v4 1/2] panic: add option to dump task maps info in panic_print Message-ID: <202409242208.SqjERCDw-lkp@intel.com> References: <20240924074341.37272-1-qiwu.chen@transsion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240924074341.37272-1-qiwu.chen@transsion.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240924_080729_252295_73A9A43E X-CRM114-Status: GOOD ( 15.26 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi qiwu.chen, kernel test robot noticed the following build errors: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on brauner-vfs/vfs.all akpm-mm/mm-everything linus/master v6.11 next-20240924] [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/qiwu-chen/arm64-show-signal-info-for-global-init/20240924-154508 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core patch link: https://lore.kernel.org/r/20240924074341.37272-1-qiwu.chen%40transsion.com patch subject: [PATCH v4 1/2] panic: add option to dump task maps info in panic_print config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240924/202409242208.SqjERCDw-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 8663a75fa2f31299ab8d1d90288d9df92aadee88) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240924/202409242208.SqjERCDw-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/202409242208.SqjERCDw-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from kernel/panic.c:15: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:2232: include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> kernel/panic.c:235:3: error: call to undeclared function 'get_vma_name'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 235 | get_vma_name(vma, &path, &name, &name_fmt); | ^ 1 warning and 1 error generated. vim +/get_vma_name +235 kernel/panic.c 210 211 /* 212 * This function is called in panic proccess if the PANIC_PRINT_TASK_MAPS_INFO 213 * flag is specified in panic_print, which is helpful to debug panic issues due 214 * to an unhandled falut in user mode such as kill init. 215 */ 216 static void dump_task_maps_info(struct task_struct *tsk) 217 { 218 struct pt_regs *user_ret = task_pt_regs(tsk); 219 struct mm_struct *mm = tsk->mm; 220 struct vm_area_struct *vma; 221 222 if (!mm || !user_mode(user_ret)) 223 return; 224 225 pr_info("Dump task %s:%d maps start\n", tsk->comm, task_pid_nr(tsk)); 226 mmap_read_lock(mm); 227 VMA_ITERATOR(vmi, mm, 0); 228 for_each_vma(vmi, vma) { 229 int flags = vma->vm_flags; 230 unsigned long long pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT; 231 const struct path *path; 232 const char *name_fmt, *name; 233 char name_buf[SZ_256]; 234 > 235 get_vma_name(vma, &path, &name, &name_fmt); 236 if (path) { 237 name = d_path(path, name_buf, sizeof(name_buf)); 238 name = IS_ERR(name) ? "?" : name; 239 } else if (name || name_fmt) { 240 snprintf(name_buf, sizeof(name_buf), name_fmt ?: "%s", name); 241 name = name_buf; 242 } 243 244 if (name) 245 pr_info("%08lx-%08lx %c%c%c%c %08llx %s\n", 246 vma->vm_start, vma->vm_end, 247 flags & VM_READ ? 'r' : '-', 248 flags & VM_WRITE ? 'w' : '-', 249 flags & VM_EXEC ? 'x' : '-', 250 flags & VM_MAYSHARE ? 's' : 'p', 251 pgoff, name); 252 253 } 254 mmap_read_unlock(mm); 255 pr_info("Dump task %s:%d maps end\n", tsk->comm, task_pid_nr(tsk)); 256 } 257 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki