Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3329439pxb; Mon, 25 Jan 2021 12:58:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMGLCVHZn9Qr71VC3UKp0E4kYUO2ZBj1UsTTHmrHp3aTJ0jP+IOTqJ/zNfn/PrLgbXd4+D X-Received: by 2002:a50:9ee9:: with SMTP id a96mr2000561edf.343.1611608320325; Mon, 25 Jan 2021 12:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611608320; cv=none; d=google.com; s=arc-20160816; b=EdmKDr1bNmheJ0hGSLAJZ4xbo/418NhlQnGrwQbQFQzOpaTp6tPe54GUDIYGU8/rxk qmLjDTKyI36tQqNHvRMdCNzjNdnsphP2gIfin/mWEAOjw5+wZLRuKTLJNPCWVMC68VyM Kn/xVTWCuuNI09HyHPsc8SqMdhgVMBjJolOVu0iL/7SekxpkyWcvXX+jzbWelDZ7rDLL MX/1xIssw4jMGeFNQblw9qLYTNfWyyG0JENJ3VYGWKp31Q+62lqJ7coUpgibUEk4cidZ ZwhxLzC+T8TQ561yMBHUmm9zAt2eVTLZT+EzvG7xILKylXyujGm+5xrxL/1EZuk4E2gS vfQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=ViblkZ+TbMsMgJAu7J/x//ZXTPOXQXdBTY0COfCFKGI=; b=KkeVWMyP9+BV5pCPLMDYDKfaYATKOQijIUuf8gZ0DowY8DjKKGiBqAF/7DO3VfXCcm zlLzGReOaoXCZqjg7fuT+aYwsBGmIRc6eawXNcCe12cC8d21oAjk43m0D72OWf1uKvqo 1VHRVpU90r1fEXA9EQKNZnn30d0nWHBFyHYWhOyQfcZHhcjKGebWNWyvyd+LO5xQ0AE1 p80VfX3uqxpINAF6ieSKKrtFqRmmwklT1b+BL7g4fDADcmHTkz2G+Jw1OiRcQ4ARZHX3 38ggWFfhLqe3LAUWJC7Rf1SU8H/4EJNmm2QskdaG25bEVQ9UqgKL+fqcdiGLTKEVf3Tl Qdxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f29si8264915edj.297.2021.01.25.12.58.16; Mon, 25 Jan 2021 12:58:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731500AbhAYU5U (ORCPT + 99 others); Mon, 25 Jan 2021 15:57:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:53012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732008AbhAYU5L (ORCPT ); Mon, 25 Jan 2021 15:57:11 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1882522513; Mon, 25 Jan 2021 20:56:30 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l48uR-009xpQ-UP; Mon, 25 Jan 2021 20:56:28 +0000 Date: Mon, 25 Jan 2021 20:56:27 +0000 Message-ID: <87pn1ska6c.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton , Sasha Levin Cc: dbrazdil@google.com, hns@goldelico.com, linux-kernel@vger.kernel.org Subject: Re: [BUG]: KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe In-Reply-To: <20210125200756.1249239-1-oupton@google.com> References: <20200914133626.hlsvu5kces3wsirr@google.com> <20210125200756.1249239-1-oupton@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: oupton@google.com, sashal@kernel.org, dbrazdil@google.com, hns@goldelico.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Mon, 25 Jan 2021 20:07:56 +0000, Oliver Upton wrote: > > > That means we have two options: > > (a) define __hyp_panic_string in a different .c file in all pre-5.9 branches, or > > (b) revert the backported patch. > > > > The patch was needed in 5.9 and should stay there. It wasn't needed in earlier > > versions because the symbol was being kept alive by another user. It did "fix" > > the inline asm semantics, but the problem was never triggered in pre-5.9. > > > > Sasha, with this and the GCC bug in mind, would you agree that (b) is the > > better course of action? > > Sasha, > > Any chance we can get this patch reverted as David has suggested? It > was backported to 5.4 LTS in commit 653ae33b030b ("KVM: arm64: Fix > symbol dependency in __hyp_call_panic_nvhe") and is causing build > issues with a 4.9.4 vintage of GCC. Absolutely. This issue has been lingering for some time now, and needs addressing. I'm definitely in favour of reverting this patch, although there are two possible alternatives: - Cherry-pick 9fd339a45be5 ("arm64: Work around broken GCC 4.9 handling of "S" constraint"), which works around this particular GCC bug - Cherry-pick dca5244d2f5b ("compiler.h: Raise minimum version of GCC to 5.1 for arm64"), which forbids GCC 4.9 as it has been demonstrated to mis-compile the kernel (and this patch is targeting stable anyway) Thanks, M. -- Without deviation from the norm, progress is not possible.