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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BC66C7EE29 for ; Fri, 9 Jun 2023 09:13:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16AB48E0003; Fri, 9 Jun 2023 05:13:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 11B3F8E0001; Fri, 9 Jun 2023 05:13:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F22138E0003; Fri, 9 Jun 2023 05:13:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E48E78E0001 for ; Fri, 9 Jun 2023 05:13:09 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B64531601AB for ; Fri, 9 Jun 2023 09:13:09 +0000 (UTC) X-FDA: 80882645298.04.02B70F7 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf07.hostedemail.com (Postfix) with ESMTP id A8C694001B for ; Fri, 9 Jun 2023 09:13:07 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Fkx090yo; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686301987; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=r3QFU8GUV7hPx7mHPSVYKoyanYXAcfMaEdIo8jGHa4s=; b=KfYjf1AjkQToChf041laa0JehwgE3zLXT1e8wMiC9ZcUR9FIrH0oa1dISXKcnXOf8qvi9V kbjzyiGjqzsvAsJ7SrBvT6TQDOFu3nbDC/glcAMlsnGQvNXD308Rk3NGoB0zUOTYFiTzLh M+ijp3/TKefZh77WW4Y1ydvsjiTP4xE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686301987; a=rsa-sha256; cv=none; b=hk35nfMCXN7cJg0tKcxBJB38BUmXTTCtcxc7Lwh3ZpuAOixSwDilWrdVz97Y7p+6UN2qSN 7JRK+6B2SSyuWcPaK8yEHYhuDdsds/NQHe7mB6J74rzN61qDeyneVSyqFpXVlB11oUf3/H cwGTD+hWa8prFgkuEbZFB/FNU+JByJw= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Fkx090yo; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686301987; x=1717837987; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iABd7J+Z2Pr+pemZcE68eNmTsZ+3OObupdFPLfMdguU=; b=Fkx090yoCHx9rYVcjz64yESGxYOQ6NOL187nOdcL9rFeSdinbWFeMFuI ZErTMlN4fKCbe7+imnLwpxqTaYKvaQ/08ku3V4Jwoqb+rpDai6SojkjXs qqIne8ZbRTj37PrysmAtQNI6U82XXMKEtphS2lrYGUQQ+MXaqFSD0KmyA 8HUcxeXu7yrk4YEGzuV4aD0JR3amdv3EHv1vLcec0c26ExDX1+Iwiw2nj Ex88LYR0WOVMwC0RvOb77TBVpII2k31TaCxgbC9XuVm0kAs95RFgTUvXd hv5wchlKFv3yRSCo/2i6xcI63yuxytXqasirbcUrbZVjaxJxdwsXXNKTh Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="342231080" X-IronPort-AV: E=Sophos;i="6.00,228,1681196400"; d="scan'208";a="342231080" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2023 02:13:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="1040434681" X-IronPort-AV: E=Sophos;i="6.00,228,1681196400"; d="scan'208";a="1040434681" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 09 Jun 2023 02:13:00 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q7YB1-0008so-2C; Fri, 09 Jun 2023 09:12:59 +0000 Date: Fri, 9 Jun 2023 17:12:28 +0800 From: kernel test robot To: Vincent Whitchurch , Wim Van Sebroeck , Guenter Roeck , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com, Vincent Whitchurch Subject: Re: [PATCH] watchdog/mm: Allow dumping memory info in pretimeout Message-ID: <202306091716.pcrXYphk-lkp@intel.com> References: <20230608-pretimeout-oom-v1-1-542cc91062d7@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230608-pretimeout-oom-v1-1-542cc91062d7@axis.com> X-Rspamd-Queue-Id: A8C694001B X-Rspam-User: X-Stat-Signature: o5cwhngx6ecjir3qyzmp3yomy77o1g54 X-Rspamd-Server: rspam03 X-HE-Tag: 1686301987-367032 X-HE-Meta: U2FsdGVkX19+yCkbJYGPJLowA5x8XjVBgmGxWy56OeHmRDFB0ibdm6MC9l6Urbjtf4dCB98jxw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jBmfzk9xvsaqo0RtECHO84j0kmqlRnKUJh2KlixXmDCnFojqJf23VyS5ySD41VDCI4Pouq6Ff6Ub2sR2x1DMEnt2YOcmK20+jRPxqp0sdAKj3seoHL26V0FFGUn8lg88FhKb0BhUCHNKS1KRgP2rdSOxAMOvkt3uNVZWjH8AQKRh0/y8hch+fZUwDniS/JCtvwBih28GreJqGTIbE/hJsFSISAdr4La007Kn1xgiTZpeoDndq+NSqhRc51Rx6lapARCxDYiIInFzQM4Tlug== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Vincent, kernel test robot noticed the following build warnings: [auto build test WARNING on 9561de3a55bed6bdd44a12820ba81ec416e705a7] url: https://github.com/intel-lab-lkp/linux/commits/Vincent-Whitchurch/watchdog-mm-Allow-dumping-memory-info-in-pretimeout/20230609-144807 base: 9561de3a55bed6bdd44a12820ba81ec416e705a7 patch link: https://lore.kernel.org/r/20230608-pretimeout-oom-v1-1-542cc91062d7%40axis.com patch subject: [PATCH] watchdog/mm: Allow dumping memory info in pretimeout config: hexagon-buildonly-randconfig-r001-20230608 (https://download.01.org/0day-ci/archive/20230609/202306091716.pcrXYphk-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): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 9561de3a55bed6bdd44a12820ba81ec416e705a7 b4 shazam https://lore.kernel.org/r/20230608-pretimeout-oom-v1-1-542cc91062d7@axis.com # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash 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/202306091716.pcrXYphk-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from mm/oom_kill.c:30: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from mm/oom_kill.c:30: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from mm/oom_kill.c:30: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> mm/oom_kill.c:156:21: warning: no previous prototype for function 'find_trylock_task_mm' [-Wmissing-prototypes] 156 | struct task_struct *find_trylock_task_mm(struct task_struct *p) | ^ mm/oom_kill.c:156:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 156 | struct task_struct *find_trylock_task_mm(struct task_struct *p) | ^ | static 7 warnings generated. vim +/find_trylock_task_mm +156 mm/oom_kill.c 151 152 /* 153 * Identical to the above, except that we avoid tasks which we can't lock, to 154 * avoid deadlocks when called from an interrupt handler. 155 */ > 156 struct task_struct *find_trylock_task_mm(struct task_struct *p) 157 { 158 struct task_struct *t; 159 160 rcu_read_lock(); 161 162 for_each_thread(p, t) { 163 if (!task_trylock(t)) 164 continue; 165 if (likely(t->mm)) 166 goto found; 167 task_unlock(t); 168 } 169 t = NULL; 170 found: 171 rcu_read_unlock(); 172 173 return t; 174 } 175 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki