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 D600CC2BB3F for ; Sat, 18 Nov 2023 20:42:22 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zBjViNmdMB92FDe+kNAfMNAT2twgSYiV4l21CKUJ7Vo=; b=zvc3oKsUf2bfwt sLZKldsvkldvfwF6aIgoFJzoUdA1C3VDCS0s0BZpzu3QLVVWO1vmSsaYaKRefU0ysNgyZ+Uf9n6/4 y6InMq78mnhYsU/MdeOz/+o55UOvPFQPzDwmiyliijGarTr5NkK0QSSLjT9eTqq6VgwGaGEYY/tgu WwcpPDLLHcOVDWpuw2/cHEtJAL+aPXTIiR/zRScIjD8NbVrsqQHI7s0LvrDw/UcFpH5pDLABLoOWl ZccWe/tftFBiM2nzsOFYwBch7Xy8/Ee0ZvoSUmi+Wp782oCSJ2wN7KcSQoxFbzm6pOZ8tffa9tmcn Ma7gPZsvrqtn5xNleOZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4S8R-0098GE-1a; Sat, 18 Nov 2023 20:41:47 +0000 Received: from mgamail.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4S8N-0098Fi-2O for linux-arm-kernel@lists.infradead.org; Sat, 18 Nov 2023 20:41:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700340103; x=1731876103; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SNOxp2VKi69QamJfV6FHH/Q0V+/45fY4L6p3Mwj1vf0=; b=GmgQOjkNTs40rvJejSGa1DLuObrDcwtJ2olZ+mwLL2Dklty+Yu1BCcgr wm+ka9M2iwS9h14HAiz12JcIBV+x1FkjWLKih2V9fW6PIqgaq4FUT9i+A 52z9kZbqaKdOCwqngmY7XmsrfnmpErtR0R9vLKiLAHxAKByHrxV7CvmgL xaTSgkTQBkOb4HvIDWH8xtmxgxLyWmCIOa0ymCcpVrq0e74LBVAm9bZ77 6UVRufB+iuhCS8kxlup9eF9cXc0LpcLLeZ1P7+4JVVwzBF2Ta9rfgCtLS MVjMCGv5XCRV48/YVjm+y2vaJ8T8ruZlvBmHMZjPpOdqBpKIvEkxILVQc A==; X-IronPort-AV: E=McAfee;i="6600,9927,10898"; a="477670333" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="477670333" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2023 12:41:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10898"; a="742376792" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="742376792" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 18 Nov 2023 12:41:35 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r4S8D-0004GV-1o; Sat, 18 Nov 2023 20:41:33 +0000 Date: Sun, 19 Nov 2023 04:40:53 +0800 From: kernel test robot To: qiwuchen55@gmail.com, catalin.marinas@arm.com, will@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, chenqiwu Subject: Re: [PATCH] arm64: Add user stacktrace support Message-ID: <202311190405.QUvoF0b3-lkp@intel.com> References: <20231118134504.154842-1-qiwu.chen@transsion.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231118134504.154842-1-qiwu.chen@transsion.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231118_124143_794274_21271449 X-CRM114-Status: GOOD ( 13.64 ) 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, kernel test robot noticed the following build warnings: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on linus/master v6.7-rc1 next-20231117] [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/qiwuchen55-gmail-com/arm64-Add-user-stacktrace-support/20231118-214756 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core patch link: https://lore.kernel.org/r/20231118134504.154842-1-qiwu.chen%40transsion.com patch subject: [PATCH] arm64: Add user stacktrace support config: arm64-randconfig-r071-20231119 (https://download.01.org/0day-ci/archive/20231119/202311190405.QUvoF0b3-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231119/202311190405.QUvoF0b3-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/202311190405.QUvoF0b3-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/arm64/kernel/stacktrace.c:393: warning: expecting prototype for stack_trace_save_user(). Prototype was for arch_stack_walk_user() instead vim +393 arch/arm64/kernel/stacktrace.c 384 385 /** 386 * stack_trace_save_user - Save user space stack traces into a storage array 387 * @consume_entry: Callback for save a user space stack trace 388 * @cookie: Caller supplied pointer handed back by arch_stack_walk() 389 * @regs: The pt_regs pointer of current task 390 */ 391 void arch_stack_walk_user(stack_trace_consume_fn consume_entry, void *cookie, 392 const struct pt_regs *regs) > 393 { 394 struct stack_frame_user frame; 395 struct vm_area_struct *vma; 396 unsigned long userstack_start, userstack_end; 397 struct task_struct *tsk = current; 398 399 /* TODO: support stack unwind for compat user mode */ 400 if (!regs || !user_mode(regs) || compat_user_mode(regs)) 401 return; 402 403 userstack_start = regs->user_regs.sp; 404 vma = find_user_stack_vma(tsk, userstack_start); 405 if (!vma) 406 return; 407 408 userstack_end = vma->vm_end; 409 frame.fp = regs->user_regs.regs[29]; 410 frame.sp = userstack_start; 411 frame.pc = regs->user_regs.pc; 412 413 while (1) { 414 unsigned long where = frame.pc; 415 416 /* Sanity check: ABI requires pc to be aligned 4 bytes. */ 417 if (!where || where & 0x3) 418 break; 419 if (!consume_entry(cookie, where)) 420 break; 421 if (arch_unwind_user_frame(tsk, userstack_end, &frame) < 0) 422 break; 423 } 424 } 425 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel