From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D01997B for ; Wed, 23 Feb 2022 09:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645607187; x=1677143187; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UmG8QUkK9khDhXRiw9N34JhJQ0VKWF9hY6tPnln+/Xk=; b=XIL8F8FGozAUw9/ypXTljD5mI8fuaciOkDIU+cRe6q5QkyNcfQSrDnOZ 9zNmU89HqrCxQzFNkAeITIn+pcUgbhaSJt7H//kkiGTlAJ7ySFK9j2w9j QQ6MM9i2ycqX746bPQ47FyWHFda2oBxJqhYlfAzlUW40qc0Bp5QaphHx6 gJBWQAmX6WPlpdZtd8Pbqvx4nYLA6fZQUfoK3H7aHBpsyUHnfYwR9nxdu Zc7/EuSlRG7mZSae8LUfyXfTPs/aSkllUPyK3Tdi/cuJaRAAHvwfQEJOy pjNkI9R9mgTLFzCVarpkVQYQmDgix6424NgyHmr/eKEY6lIvwY4mJQ0ik A==; X-IronPort-AV: E=McAfee;i="6200,9189,10266"; a="252111204" X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="252111204" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 01:06:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="543248029" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 23 Feb 2022 01:06:21 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nMnbJ-0001C6-7M; Wed, 23 Feb 2022 09:06:21 +0000 Date: Wed, 23 Feb 2022 17:05:18 +0800 From: kernel test robot To: Kalesh Singh Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, will@kernel.org, maz@kernel.org, qperret@google.com, tabba@google.com, surenb@google.com, kernel-team@android.com, Kalesh Singh , Catalin Marinas , James Morse , Alexandru Elisei , Suzuki K Poulose , Ard Biesheuvel , Mark Rutland , Pasha Tatashin , Joey Gouly , Peter Collingbourne , Andrew Scull , Paolo Bonzini , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH v2 6/9] KVM: arm64: Detect and handle hypervisor stack overflows Message-ID: <202202231727.L621fVgD-lkp@intel.com> References: <20220222165212.2005066-7-kaleshsingh@google.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220222165212.2005066-7-kaleshsingh@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Kalesh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on cfb92440ee71adcc2105b0890bb01ac3cddb8507] url: https://github.com/0day-ci/linux/commits/Kalesh-Singh/KVM-arm64-Hypervisor-stack-enhancements/20220223-010522 base: cfb92440ee71adcc2105b0890bb01ac3cddb8507 config: arm64-randconfig-r011-20220221 (https://download.01.org/0day-ci/archive/20220223/202202231727.L621fVgD-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/7fe99fd40f7c4b2973218045ca5b9c9160524db1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kalesh-Singh/KVM-arm64-Hypervisor-stack-enhancements/20220223-010522 git checkout 7fe99fd40f7c4b2973218045ca5b9c9160524db1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:200:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_hyp_handle_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:201:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:202:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:203:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:208:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SYS64] = kvm_handle_pvm_sys64, ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:209:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SVE] = kvm_handle_pvm_restricted, ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:210:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_handle_pvm_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:211:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:212:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:213:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:350:17: warning: no previous prototype for function 'hyp_panic' [-Wmissing-prototypes] void __noreturn hyp_panic(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:350:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic(void) ^ static >> arch/arm64/kvm/hyp/nvhe/switch.c:372:17: warning: no previous prototype for function 'hyp_panic_bad_stack' [-Wmissing-prototypes] void __noreturn hyp_panic_bad_stack(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:372:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic_bad_stack(void) ^ static arch/arm64/kvm/hyp/nvhe/switch.c:377:17: warning: no previous prototype for function 'kvm_unexpected_el2_exception' [-Wmissing-prototypes] asmlinkage void kvm_unexpected_el2_exception(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:377:12: note: declare 'static' if the function is not intended to be used outside of this translation unit asmlinkage void kvm_unexpected_el2_exception(void) ^ static 16 warnings generated. vim +/hyp_panic_bad_stack +372 arch/arm64/kvm/hyp/nvhe/switch.c 371 > 372 void __noreturn hyp_panic_bad_stack(void) 373 { 374 hyp_panic(); 375 } 376 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org 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 mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C917C433EF for ; Wed, 23 Feb 2022 09:06:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 75DB34C3F8; Wed, 23 Feb 2022 04:06:35 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@intel.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aE3QLeNr0vhA; Wed, 23 Feb 2022 04:06:33 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 542F74C358; Wed, 23 Feb 2022 04:06:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id BFBB34C2CA for ; Wed, 23 Feb 2022 04:06:31 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CYiZbmPd7TWZ for ; Wed, 23 Feb 2022 04:06:28 -0500 (EST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 787604C333 for ; Wed, 23 Feb 2022 04:06:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645607188; x=1677143188; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UmG8QUkK9khDhXRiw9N34JhJQ0VKWF9hY6tPnln+/Xk=; b=WzLddWY58TZxBZv+9edDcNUl9oNsryK+gyXz7k60AASS8uHa7uh3r7n0 XKlYMpd6DlZPdCrtBiRnsv+wN4XxYq7ZfjLdrJGNCoiq8ke29ZS/rv+er vpgFCumGcnRUTPCMgMB3dlpmTBrBUSBmQL6Wo91CgdDza9zpL+76o8PHg Ue1OV52ineTkYjPS3cnwBMwhvhXjHCugAzpIadNHZIm8g/9Lk8uOJ8I05 i1HDsrDzRADkYfKN9xnDT8wxX1xFrOj9PswttoA4PcmqtZhQ5kjunnj8T MyscgCqNPAuuflFNl2UepSoH3lnPn/ilq+Mk7LKSXII26bS8QJ8Qoz7ZM g==; X-IronPort-AV: E=McAfee;i="6200,9189,10266"; a="251656540" X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="251656540" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 01:06:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="543248029" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 23 Feb 2022 01:06:21 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nMnbJ-0001C6-7M; Wed, 23 Feb 2022 09:06:21 +0000 Date: Wed, 23 Feb 2022 17:05:18 +0800 From: kernel test robot To: Kalesh Singh Subject: Re: [PATCH v2 6/9] KVM: arm64: Detect and handle hypervisor stack overflows Message-ID: <202202231727.L621fVgD-lkp@intel.com> References: <20220222165212.2005066-7-kaleshsingh@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220222165212.2005066-7-kaleshsingh@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Catalin Marinas , llvm@lists.linux.dev, Joey Gouly , Kalesh Singh , will@kernel.org, maz@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kernel-team@android.com, Pasha Tatashin , surenb@google.com, Peter Collingbourne , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Paolo Bonzini X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu Hi Kalesh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on cfb92440ee71adcc2105b0890bb01ac3cddb8507] url: https://github.com/0day-ci/linux/commits/Kalesh-Singh/KVM-arm64-Hypervisor-stack-enhancements/20220223-010522 base: cfb92440ee71adcc2105b0890bb01ac3cddb8507 config: arm64-randconfig-r011-20220221 (https://download.01.org/0day-ci/archive/20220223/202202231727.L621fVgD-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/7fe99fd40f7c4b2973218045ca5b9c9160524db1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kalesh-Singh/KVM-arm64-Hypervisor-stack-enhancements/20220223-010522 git checkout 7fe99fd40f7c4b2973218045ca5b9c9160524db1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:200:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_hyp_handle_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:201:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:202:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:203:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:208:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SYS64] = kvm_handle_pvm_sys64, ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:209:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SVE] = kvm_handle_pvm_restricted, ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:210:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_handle_pvm_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:211:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:212:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:213:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:350:17: warning: no previous prototype for function 'hyp_panic' [-Wmissing-prototypes] void __noreturn hyp_panic(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:350:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic(void) ^ static >> arch/arm64/kvm/hyp/nvhe/switch.c:372:17: warning: no previous prototype for function 'hyp_panic_bad_stack' [-Wmissing-prototypes] void __noreturn hyp_panic_bad_stack(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:372:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic_bad_stack(void) ^ static arch/arm64/kvm/hyp/nvhe/switch.c:377:17: warning: no previous prototype for function 'kvm_unexpected_el2_exception' [-Wmissing-prototypes] asmlinkage void kvm_unexpected_el2_exception(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:377:12: note: declare 'static' if the function is not intended to be used outside of this translation unit asmlinkage void kvm_unexpected_el2_exception(void) ^ static 16 warnings generated. vim +/hyp_panic_bad_stack +372 arch/arm64/kvm/hyp/nvhe/switch.c 371 > 372 void __noreturn hyp_panic_bad_stack(void) 373 { 374 hyp_panic(); 375 } 376 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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 72C96C433F5 for ; Wed, 23 Feb 2022 09:07:50 +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=epyBn5eMm+jrkG8OHbYF92BlVfv8imLLDe+e1wGikao=; b=iYcoIzyzpnwJAB NgYNoNHu4kA7JYTnxSbM8qEAVAleixu6/Sg5vZsFs/YvfXcgsZ1zDTimwAF3qhW3a8zSTljLTIrCN 3G9o5VmY/mfmYINvjyaNsTJ6GleAzLB7a8/fXx6n3FakTQr/S/2piw6q7JUsr/I3UoYr1zrAJbc5z zOmFI52WePTy1k1MS7p91TMp+uZopQUnaf2TSslv+fC241D3Cpt/LKZ7Epu+tj8v9uCE7FmuFNu6c cj/U8sSR0VOiR/X+QQOG/k/3H1+h2RBCPw8ZzawrsOIohwmVrVEe7rshyrhwmabP04JbQrz4rrgxH uIdMecT3t4tkGOwFRaVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMnbV-00DPtW-M0; Wed, 23 Feb 2022 09:06:34 +0000 Received: from mga07.intel.com ([134.134.136.100]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMnbQ-00DPsA-4Q for linux-arm-kernel@lists.infradead.org; Wed, 23 Feb 2022 09:06:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645607188; x=1677143188; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UmG8QUkK9khDhXRiw9N34JhJQ0VKWF9hY6tPnln+/Xk=; b=WzLddWY58TZxBZv+9edDcNUl9oNsryK+gyXz7k60AASS8uHa7uh3r7n0 XKlYMpd6DlZPdCrtBiRnsv+wN4XxYq7ZfjLdrJGNCoiq8ke29ZS/rv+er vpgFCumGcnRUTPCMgMB3dlpmTBrBUSBmQL6Wo91CgdDza9zpL+76o8PHg Ue1OV52ineTkYjPS3cnwBMwhvhXjHCugAzpIadNHZIm8g/9Lk8uOJ8I05 i1HDsrDzRADkYfKN9xnDT8wxX1xFrOj9PswttoA4PcmqtZhQ5kjunnj8T MyscgCqNPAuuflFNl2UepSoH3lnPn/ilq+Mk7LKSXII26bS8QJ8Qoz7ZM g==; X-IronPort-AV: E=McAfee;i="6200,9189,10266"; a="315147366" X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="315147366" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 01:06:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,390,1635231600"; d="scan'208";a="543248029" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 23 Feb 2022 01:06:21 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nMnbJ-0001C6-7M; Wed, 23 Feb 2022 09:06:21 +0000 Date: Wed, 23 Feb 2022 17:05:18 +0800 From: kernel test robot To: Kalesh Singh Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, will@kernel.org, maz@kernel.org, qperret@google.com, tabba@google.com, surenb@google.com, kernel-team@android.com, Kalesh Singh , Catalin Marinas , James Morse , Alexandru Elisei , Suzuki K Poulose , Ard Biesheuvel , Mark Rutland , Pasha Tatashin , Joey Gouly , Peter Collingbourne , Andrew Scull , Paolo Bonzini , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH v2 6/9] KVM: arm64: Detect and handle hypervisor stack overflows Message-ID: <202202231727.L621fVgD-lkp@intel.com> References: <20220222165212.2005066-7-kaleshsingh@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220222165212.2005066-7-kaleshsingh@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220223_010628_254906_4A965C33 X-CRM114-Status: GOOD ( 12.90 ) 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 Kalesh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on cfb92440ee71adcc2105b0890bb01ac3cddb8507] url: https://github.com/0day-ci/linux/commits/Kalesh-Singh/KVM-arm64-Hypervisor-stack-enhancements/20220223-010522 base: cfb92440ee71adcc2105b0890bb01ac3cddb8507 config: arm64-randconfig-r011-20220221 (https://download.01.org/0day-ci/archive/20220223/202202231727.L621fVgD-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/7fe99fd40f7c4b2973218045ca5b9c9160524db1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kalesh-Singh/KVM-arm64-Hypervisor-stack-enhancements/20220223-010522 git checkout 7fe99fd40f7c4b2973218045ca5b9c9160524db1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:200:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_hyp_handle_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:201:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:202:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:203:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:196:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:208:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SYS64] = kvm_handle_pvm_sys64, ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:209:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SVE] = kvm_handle_pvm_restricted, ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:210:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_handle_pvm_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:211:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:212:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:213:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:207:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:350:17: warning: no previous prototype for function 'hyp_panic' [-Wmissing-prototypes] void __noreturn hyp_panic(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:350:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic(void) ^ static >> arch/arm64/kvm/hyp/nvhe/switch.c:372:17: warning: no previous prototype for function 'hyp_panic_bad_stack' [-Wmissing-prototypes] void __noreturn hyp_panic_bad_stack(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:372:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic_bad_stack(void) ^ static arch/arm64/kvm/hyp/nvhe/switch.c:377:17: warning: no previous prototype for function 'kvm_unexpected_el2_exception' [-Wmissing-prototypes] asmlinkage void kvm_unexpected_el2_exception(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:377:12: note: declare 'static' if the function is not intended to be used outside of this translation unit asmlinkage void kvm_unexpected_el2_exception(void) ^ static 16 warnings generated. vim +/hyp_panic_bad_stack +372 arch/arm64/kvm/hyp/nvhe/switch.c 371 > 372 void __noreturn hyp_panic_bad_stack(void) 373 { 374 hyp_panic(); 375 } 376 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel