Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1425904pxm; Thu, 24 Feb 2022 02:58:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh5U6qwGaqf29YwrEcB7/wGDJnntBfHPBTYv3VHwesdHOyjL3uruI61oUsD945xpQftlCc X-Received: by 2002:a17:902:8644:b0:14f:cf95:648a with SMTP id y4-20020a170902864400b0014fcf95648amr2136270plt.138.1645700320159; Thu, 24 Feb 2022 02:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645700320; cv=none; d=google.com; s=arc-20160816; b=CAMJqKOIjBVhWvnVxYx/Pm2YHlo9mjxJ94NbYxkgdxO6w1JICF3WQIhuPrkdTPWfjK EMUwXcqkVBwVzfj9wnYOcUvATOKPz8lPHhmfAOzpMdId6MtlJHHXHlJq7hwsQ/QknvQG E1hoaDC0cKUPvIXSmj7k8OubKSOfGhh34bSd+VshazAViZJw4kqUUq8q6ZhQ5oKW79cC a0/2GwSQPfhbJwoKFz+CuOoe3L6EUl1PVE0HNRcS20AVyZi6naFH+GcdQRdxqdoQvDu1 rDqAGXCvOj5Q1LghWWQVDasoeZTB0KIcjZnLUyC2+mcGZF+Hy2bcpAaPE9L8O7YmbrXW YQzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=scTUl7ZLZvYQgu50r18uDn1l2gI5NKJMZeTMt4p/13w=; b=KzvQvJXwp48RT62CKUXdMWt6NhExqa+eSfgjP8SiBt9zxJz4pqaNLArixgCek1p648 hNJq/i+CL+y9KIaDWcFzCeO39pQ1zBRqEvH2naDPrkoYEhM1jolzXr4BCheST75QiHWs vqGAfvCSEUouvRmjP8YVo5nsSqqfZ8GavLvbMugHhZazev74jMRdbiO3ELTuhzRUeIJB W1U2uoRXqP9JoOfNrDOhSDB/oewPt9g2XciubAZTlA/qDmSEC3vkDZbuqdmFc7nAuudu YfovAiosh15+gqkQJRhf7WqvVKI/Bq9IOEvc8/sbcVcTQwBG8+qETPhmhnQg3En3481/ u/qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qAs+hGS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13si1893284pll.145.2022.02.24.02.58.15; Thu, 24 Feb 2022 02:58:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qAs+hGS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233525AbiBXKj4 (ORCPT + 99 others); Thu, 24 Feb 2022 05:39:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233524AbiBXKjx (ORCPT ); Thu, 24 Feb 2022 05:39:53 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3227728AD8B for ; Thu, 24 Feb 2022 02:39:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EAA48B81C4A for ; Thu, 24 Feb 2022 10:39:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75D07C340E9; Thu, 24 Feb 2022 10:39:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645699160; bh=JE74vM6F239/HyTrEDsqOE00ec9BmQ42Y4OdvszfnpU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qAs+hGS6Ri7GNCE9Har0J+LPVD+ewhbDdPU45i37O7fJZZKp9bcyVQb4eE4Jvb94e 4P7PTXOxSwb3MNglKP4zsZgu0734lr6EMTGVUWMidtpZi/GhVgwZ526WxmlhJoS4TG YRULgtIp5lITDHTUl9XTZCrjWmaMCwnAGOoYJNecxrXJ6mmAhqGJGnTvqePx+ruLxE ykAsn+5JTIlB+HnsujxgbU1U9Oqd14UR0JDzrh6Cer3YxKsG6gNuVywh/pMQBr6qml W5n6O49t1pX+X4FoiLqeMlFzNIxpXPXlFriizE+cwWKxUdjN7brcP0yLpz3y41GVEr BKjT6Li1tOwig== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nNBWo-00A9YD-5V; Thu, 24 Feb 2022 10:39:18 +0000 MIME-Version: 1.0 Date: Thu, 24 Feb 2022 10:39:17 +0000 From: Marc Zyngier To: Ard Biesheuvel Cc: Philip Li , Kalesh Singh , kernel test robot , llvm@lists.linux.dev, kbuild-all@lists.01.org, Will Deacon , Quentin Perret , Fuad Tabba , surenb@google.com, Android Kernel Team , Catalin Marinas , James Morse , Alexandru Elisei , Suzuki K Poulose , Mark Rutland , Pasha Tatashin , Joey Gouly , Peter Collingbourne , Andrew Scull , Paolo Bonzini , Zenghui Yu , Linux ARM , Linux Kernel Mailing List , kvmarm Subject: Re: [kbuild-all] Re: [PATCH v2 6/9] KVM: arm64: Detect and handle hypervisor stack overflows In-Reply-To: References: <20220222165212.2005066-7-kaleshsingh@google.com> <202202231727.L621fVgD-lkp@intel.com> <875yp63ptg.wl-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <89c48bd2a9b32b4607d1515714fa3c1b@kernel.org> X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: ardb@kernel.org, philip.li@intel.com, kaleshsingh@google.com, lkp@intel.com, llvm@lists.linux.dev, kbuild-all@lists.01.org, will@kernel.org, qperret@google.com, tabba@google.com, surenb@google.com, kernel-team@android.com, catalin.marinas@arm.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, pasha.tatashin@soleen.com, joey.gouly@arm.com, pcc@google.com, ascull@google.com, pbonzini@redhat.com, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-02-23 12:56, Ard Biesheuvel wrote: > On Wed, 23 Feb 2022 at 13:54, Marc Zyngier wrote: >> >> On 2022-02-23 12:34, Philip Li wrote: >> > On Wed, Feb 23, 2022 at 09:16:59AM +0000, Marc Zyngier wrote: >> >> On Wed, 23 Feb 2022 09:05:18 +0000, >> >> kernel test robot wrote: >> >> > >> >> > 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) >> >> > ^~~~~~~~~~~ >> >> >> >> Kalesh, please ignore this nonsense. There may be things to improve, >> >> but this is *NOT* one of them. >> >> >> >> These reports are pretty useless, and just lead people to ignore real >> >> bug reports. >> > >> > Hi Kalesh, sorry there're some irrelevant issues mixed in the report, >> > kindly ignore them. And the valuable ones are the new ones that >> > prefixed by >>, as the below one in original report. >> > >> >>> 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) >> > ^ >> >> This is only called from assembly code, so a prototype wouldn't bring >> much. >> > > Should probably be marked as 'asmlinkage' then. I've suggested many > times already that this bogus diagnostic should either be disabled, or > disregard 'asmlinkage' symbols. Yes, asmlinkage is definitely missing. But it is pretty obvious that the robot people aren't interested in fixing this particular issue, given how long we have been suggesting this... M. -- Jazz is not dead. It just smells funny...