From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AA06646BF for ; Tue, 28 Jan 2025 22:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738102800; cv=none; b=NaoEOrtd86z+I2KSnmFiWOE60jcLvlG0IpO3SOkz7iusKJw1SiK8f4bDDOChYl0B5la7u8QZKHM6Ac8Q1t0h9EovhvBvR5G+9yxl5g9GRtZoAQKQohmoBNddtQo3LmCFl0nWfPv+UsoetEDX/DiwyI9M3jmGalROCYj3j+bYki0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738102800; c=relaxed/simple; bh=YWvvnH/VFZf4Bw9BwnzgYIZrOS0Wn8lbrzwSgXGMP/Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O7+XQpX7gn+LzM3lxZqI2bA/2d1FZ6MF2lzxLqBcLO7Re8gn81skGjEBIlaCm2JahXrljWc2oVBdUjqeN7G9+Bzk6cPw9fbo7+C13VDMsr/iq7L8jrt5ilGT54BhLGn0YMtDLZV3Bx/+WKxS08Bxt7pgx0FXG91e6sqMCdW0YaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KikwZEw/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KikwZEw/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DFD3C4CED3; Tue, 28 Jan 2025 22:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738102800; bh=YWvvnH/VFZf4Bw9BwnzgYIZrOS0Wn8lbrzwSgXGMP/Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KikwZEw/5MMre18iI5FPPQddh4lXGQ1PQWyRyRLYOUzzS6gwCzXEcIMmHMMH9ylOk agJfjmAfguCLonviLWug6ppj9l3aqSZc1GHte8nrOXLssPGATt3+YhwbyFsY1mwJeX JrRX7CCFK4yaSA8k1b8VMt6NU2JMwcAgqvoUuRuZQCVTvYdJsi4+jx8zZVUA9SvfBp GDGQ44038PwCCzq5HEp1auc2LIK1MooEtoI+TAnM2cC+etySh1vnuxAY6+Hy2R/Qkd WgM/Gu3Qq5qaS1a68NsEewa4UAQB945J0UTuaBxJUkCQgsp6fgTnlhvxZHWbvviug3 D9SMAR4xcZqlA== Date: Tue, 28 Jan 2025 23:19:45 +0100 From: Ingo Molnar To: Linus Torvalds Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, the arch/x86 maintainers , David Woodhouse , Peter Zijlstra , "H. Peter Anvin" Subject: [GIT PULL] x86 fix Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: * Linus Torvalds wrote: > On Mon, 27 Jan 2025 at 07:54, Ingo Molnar wrote: > > > > Fix a build regression on certain config and build environment > > combinations that generate absolute references to symbols. > > I'll hold off on this, because it looks like Ard is very close to > have this fixed (and also made it non-fatal in the process). Makes sense - meanwhile while Ard is iterating his build-warning patch here's the SEV fix that should address the build failure you've reported. Please pull the latest x86/urgent Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-2025-01-28 # HEAD: 1105ab42a84bc11c62597005f78ccad2434fbd66 x86/sev: Disable jump tables in SEV startup code Fix a build regression on certain config and build environment combinations that generate absolute references to symbols. Thanks, Ingo ------------------> Ard Biesheuvel (1): x86/sev: Disable jump tables in SEV startup code arch/x86/coco/sev/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/coco/sev/Makefile b/arch/x86/coco/sev/Makefile index 08de37559307..dcb06dc8b5ae 100644 --- a/arch/x86/coco/sev/Makefile +++ b/arch/x86/coco/sev/Makefile @@ -2,6 +2,10 @@ obj-y += core.o +# jump tables are emitted using absolute references in non-PIC code +# so they cannot be used in the early SEV startup code +CFLAGS_core.o += -fno-jump-tables + ifdef CONFIG_FUNCTION_TRACER CFLAGS_REMOVE_core.o = -pg endif