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 ECD6CFC6173 for ; Sat, 14 Sep 2024 01:54:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1E3E6B007B; Fri, 13 Sep 2024 21:54:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DCE306B0082; Fri, 13 Sep 2024 21:54:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C95B76B0083; Fri, 13 Sep 2024 21:54:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A9BA06B007B for ; Fri, 13 Sep 2024 21:54:48 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id CD6D81A11AF for ; Sat, 14 Sep 2024 01:54:47 +0000 (UTC) X-FDA: 82561675014.28.4746420 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by imf24.hostedemail.com (Postfix) with ESMTP id 1CE53180002 for ; Sat, 14 Sep 2024 01:54:43 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=aofeU1+m; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726278831; a=rsa-sha256; cv=none; b=xdwm9Q4Bc/O0p6fB3YBqNvvTAoPpIV+tGOG4igDwjvOCGKXj6PwYG2xAz85yzGnuIQadDK 7qImVMcGv7hF39h8AjiujWT6oYrKeTmZZXumi2yODldXw3yjSjicAEul5e/sb8288Y339K GAacxTw3milVyuFnaFOVQtsAwEpdGoo= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=aofeU1+m; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 192.198.163.14 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=1726278831; 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=shWwmNUn65IWPIU8nUnDuH6BUQswh1BS9AKB72K1IQQ=; b=T4z2hKHoadVipIlruQf677ESRUjkEBHYg78VOGmVCqM1nkMyy2Ot6jVO+3KwyWW2WgNFev hUj2RSIKwU5lJX2ZowA1qouqWkqFcpavy3Ei26XLD4iUbMGnE+IW2p9vBhuAoLODncaYW5 aHR3+8HrzrsCniWiWs0J5nFmfevpCHo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726278884; x=1757814884; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TLXeBUebCUeA7FDBNQ7Y62aN1d7vguuNY9Dg5smqFKw=; b=aofeU1+maLmHUTL6LbHzI8Nsni+89Mz2USH7SHQ7A2IgJivQCeyapC3p bzkJuGZoLrPqEBu83xRdYV4Vreu44mf6LBG00oXk35+gI3EQ2fwB7JCqO EtwKzmKjofLelTptKOqArdYE3Obaq/YABykDI4+URtzD5bmxPXhMOrq8e Mo8GV/C/AnUnXfEWbK6ZYlN5GfYu5R6QhPXWBXvbY/RqTANQRKGz97cYT scTbaR1No9REAUNEEhVJODpWshImu6vTKAY1xhG5j8B7KA+cuA/NkTCpF eJ6snqu/X9WRgEo+KllubX1MA82RNXKcrvpGPVpg6YtHwtOSzCg97auW7 g==; X-CSE-ConnectionGUID: qJNuL3aOTm2c0P25lrdq8Q== X-CSE-MsgGUID: 83LZXPAgT9KHzu6AHYG88Q== X-IronPort-AV: E=McAfee;i="6700,10204,11194"; a="25392358" X-IronPort-AV: E=Sophos;i="6.10,227,1719903600"; d="scan'208";a="25392358" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2024 18:54:42 -0700 X-CSE-ConnectionGUID: 8/RVo9fwTHKmd/RxSkbmmA== X-CSE-MsgGUID: 6noWOEqXTIaiVBZhuyPnbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,227,1719903600"; d="scan'208";a="72381126" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 13 Sep 2024 18:54:35 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1spHzc-0007Eu-2R; Sat, 14 Sep 2024 01:54:32 +0000 Date: Sat, 14 Sep 2024 09:54:31 +0800 From: kernel test robot To: Deepak Gupta , paul.walmsley@sifive.com, palmer@sifive.com, conor@kernel.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, corbet@lwn.net, palmer@dabbelt.com, aou@eecs.berkeley.edu, robh@kernel.org, krzk+dt@kernel.org, oleg@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, akpm@linux-foundation.org, arnd@arndb.de, ebiederm@xmission.com, kees@kernel.org, Liam.Howlett@oracle.com, vbabka@suse.cz Subject: Re: [PATCH v4 16/30] riscv/shstk: If needed allocate a new shadow stack on clone Message-ID: <202409140913.73qFCOmB-lkp@intel.com> References: <20240912231650.3740732-17-debug@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240912231650.3740732-17-debug@rivosinc.com> X-Stat-Signature: 1z4jwi7jf187pbrxa5bdq8wqc87mq96m X-Rspamd-Queue-Id: 1CE53180002 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1726278883-148708 X-HE-Meta: U2FsdGVkX196c9tsmZfMB4QAbyYF42k9r2G/WOY0nCTuQ+cZik0BmlyQnEROFx+282mSWG1FzZkrOD1atC9VpmS3Avp0E0eW7I3Xqvqb+4pfUwsMHismYd4fL3VScLhL5mc9MWS7B17JgRsiCPH1LgE+dkf1x6oGd58AzVkqwSoV/W+McT749/TE6Og4th1LIiwMeaa/lp3RKH4NX6kcyJrZmCGqpEWr2NnHAKwtbuhqyzjN0kgkVoCrKkncdh0vVq5ix9Mb8DhT33H6q0tU75Rc/f1+A13hRHnvnxE25q4NDP4ubmzxamdMzpOEKeqy8E+x34E+U1+mCeCcedoXhHhrI+FiNFpT9yL+wCYANQx5TSRROPvd7K9Dza7nOjceiuYWd3wziwp+MmCzl+KGYQNU7sHS7q/HFryeI1QOVdix0fkVkdY+MBcA8SJVvcaGWXjQsxI/HaHRqhfTDaEVQ85ZMdQ4ddBBqZ+lQnyplsGcs63sZz1n+6P3RalyWGKEeT9mgOIxHKLL9PE6a7AxBFttdqrsVFHpQUnewdzzJUjyc4aUfOzqD5zij+K/awtnoQqJGWZAnk1hXttqcwkGxeXdzMwHryQzFEtMZbK24u58AmvJ91mFLyTgrPEnC/VUyLO74MSdcXrUmX+isDzZLlcpt7POKr66+UZgByn0D9GgQiQva/5VehOml26O0IRbvh19d5KbWXRXtNOjDh+VTAWQSAb1/gLEbhMpnldKZ3OxQQ/lPN6vSvf10dXWhJKv1abp0JHPO2QcxzVzPMRU8oIvygcFaTsdjJ8sSx9jzj+A7FwkqEnWjLf2+zcAfsK9RVIZgdWYFY4hVMNpaBiVQog9SJdBPuPYTL/9/7VZQBdf8sTR4ZhnlDcSDmNsKmQiQTxzVXBwlzWJKMvRsmx+AAYZtZW3WE8HBnnKzJiWvpMbr5a30A/KqkzuqE2qWYdwYKdSfFexDouMYXkpt4E tFBrpuW+ oXW/cyq6IJ4T5hCN97HQb1a7wb/KsesF9+yMHa5WPy6k6+8KgSEd1scFz69yBKSbM8tpIlZCn/S8lSMC1ZOGCWvFg/btzGpOm5ycXheOhGSYjcdv8sC6yywjvINk6lsUGl1O9wQp8MVgDfZnW2mSKpW+nvMGchSsQIyI621n9/kT9phYOSFhmOdopVYZIqGYs8OPd0Yj2gVC3CRu5XcOrZ3DHS8l4Hqul7c5KvXnk85L01ANzvLM0ASCZmxBff0tFYFmB9oWlM447KE6er1zn/iIqtw/Qag1Lq6zMFtd0z7ZEmGn9EDeFt/RGi560+UXpaes9E5gQwoijLk+heMHV095n7ig05ggYPUTJ/QeveK3q80pWjW4wNJn3KfLXD5dkTQ4dHXkCllatDHHb0OHLHuc7mE/nQfSSgTTHJ33QwLieTkpHrlKGvuF3XHeIgIJv4nsnv0HZ0nOb/QUfI0E84y7ofzSPQgGBrIuV41ZPMzwz38EISXCi4zTwiy5OR0p6qzRBvOnlnmyXi29mGfCaChzhGsJr/EzcRKhy 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: List-Subscribe: List-Unsubscribe: Hi Deepak, kernel test robot noticed the following build warnings: [auto build test WARNING on shuah-kselftest/next] [also build test WARNING on shuah-kselftest/fixes tip/x86/core robh/for-next tip/smp/core kees/for-next/execve linus/master v6.11-rc7] [cannot apply to akpm-mm/mm-everything next-20240913] [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/Deepak-Gupta/mm-Introduce-ARCH_HAS_USER_SHADOW_STACK/20240913-072124 base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next patch link: https://lore.kernel.org/r/20240912231650.3740732-17-debug%40rivosinc.com patch subject: [PATCH v4 16/30] riscv/shstk: If needed allocate a new shadow stack on clone config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240914/202409140913.73qFCOmB-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project bf684034844c660b778f0eba103582f582b710c9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240914/202409140913.73qFCOmB-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/202409140913.73qFCOmB-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:8: In file included from include/linux/spinlock.h:56: In file included from include/linux/preempt.h:79: In file included from ./arch/riscv/include/generated/asm/preempt.h:1: In file included from include/asm-generic/preempt.h:5: In file included from include/linux/thread_info.h:60: In file included from arch/riscv/include/asm/thread_info.h:37: In file included from arch/riscv/include/asm/processor.h:17: >> arch/riscv/include/asm/usercfi.h:44:15: warning: no previous prototype for function 'get_shstk_base' [-Wmissing-prototypes] 44 | unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) | ^ arch/riscv/include/asm/usercfi.h:44:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 44 | unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) | ^ | static In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:2233: 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_" | ~~~~~~~~~~~ ^ ~~~ 2 warnings generated. -- In file included from arch/riscv/kernel/soc.c:7: In file included from include/linux/pgtable.h:6: In file included from arch/riscv/include/asm/pgtable.h:9: In file included from include/linux/mmzone.h:8: In file included from include/linux/spinlock.h:56: In file included from include/linux/preempt.h:79: In file included from ./arch/riscv/include/generated/asm/preempt.h:1: In file included from include/asm-generic/preempt.h:5: In file included from include/linux/thread_info.h:60: In file included from arch/riscv/include/asm/thread_info.h:37: In file included from arch/riscv/include/asm/processor.h:17: >> arch/riscv/include/asm/usercfi.h:44:15: warning: no previous prototype for function 'get_shstk_base' [-Wmissing-prototypes] 44 | unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) | ^ arch/riscv/include/asm/usercfi.h:44:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 44 | unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) | ^ | static 1 warning generated. -- In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:8: In file included from include/linux/spinlock.h:56: In file included from include/linux/preempt.h:79: In file included from ./arch/riscv/include/generated/asm/preempt.h:1: In file included from include/asm-generic/preempt.h:5: In file included from include/linux/thread_info.h:60: In file included from arch/riscv/include/asm/thread_info.h:37: In file included from arch/riscv/include/asm/processor.h:17: >> arch/riscv/include/asm/usercfi.h:44:15: warning: no previous prototype for function 'get_shstk_base' [-Wmissing-prototypes] 44 | unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) | ^ arch/riscv/include/asm/usercfi.h:44:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 44 | unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) | ^ | static In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:2233: 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_" | ~~~~~~~~~~~ ^ ~~~ 2 warnings generated. vim +/get_shstk_base +44 arch/riscv/include/asm/usercfi.h 43 > 44 unsigned long get_shstk_base(struct task_struct *task, unsigned long *size) 45 { 46 return 0; 47 } 48 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki