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 D62C613A26B; Wed, 4 Sep 2024 06:37:40 +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=1725431861; cv=none; b=P9Mdcfx+qutivEzN2o6dRyMnxC345gCSH186ieaBvPgpfyv3je8yGmfL0p5LDJLYszxpKVcsF7+9KRDV/FcACZZS4vsOwhQgmqc9VxpQKj9DLRLCEEAQNWD2APahbVYanaDEMbKmigZ1N63G90KTvr7vHdOYts8xl+GI7EIuDQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725431861; c=relaxed/simple; bh=B7Tw+Vgjv63Qyqa3vbVNmvqIAdsqmH0lE/Q2ozPDSgQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hdJHeeOjo+uf2fugUEasvXK+ZGlevoDeEWn9qbIKHQdtfLxN+NmYvIfWsgDfVZnJIbIP8iNg6Mn5YVv7cMRFkLszTMXyBjJwkXFu7PgAjOMaK6RD+byk6ofXqQHFG01tzFIT594eqash4qpmyZaTrcTGS7pBX9n82gZ3W+3N5tQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=feeruUSH; 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="feeruUSH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99151C4CEC2; Wed, 4 Sep 2024 06:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725431859; bh=B7Tw+Vgjv63Qyqa3vbVNmvqIAdsqmH0lE/Q2ozPDSgQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=feeruUSH43RagVAlNStKKwvWj97G5J3D8NqfoEoNz4lhJJAF3H/jQm1qDMx69tPGf 0+3DxTLln5wqOS2na2nqRV1S5f3youoEhFLGrLdgxDi1EWcG0ImLAKsROGOJKAiAZJ kz4PB8C6Lx4EedzD8NrNDDdxLictt3kro8aAPWEflobtbPIZrytn2up+/kxoVMs+bK 8eXTJgA4+qKQRmqDtE01iyR8yIUokmMTIvT/Dgr09Opapl2JTA4qq06h9rEnGfJn9j GTM4KG6HWUOCP1VFCEqYdj5xVGrN1VDef7r680MTCp3PnhOaBco9xPXRJRbomD2Ka4 uXx9grbpV+UgQ== Date: Tue, 3 Sep 2024 23:37:36 -0700 From: Josh Poimboeuf To: Song Liu Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Miroslav Benes , Petr Mladek , Joe Lawrence , Jiri Kosina , Peter Zijlstra , Marcos Paulo de Souza Subject: Re: [RFC 00/31] objtool, livepatch: Livepatch module generation Message-ID: <20240904063736.c7ru2k5o7x35o2vy@treble> References: <20240904043034.jwy4v2y4wkinjqe4@treble> Precedence: bulk X-Mailing-List: live-patching@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Sep 03, 2024 at 10:26:02PM -0700, Song Liu wrote: > Hi Josh, > > I have attached the config I used for LLVM and gcc. !IBT is triggering the ORC bug. This should fix it: diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 518c70b8db50..643bfba65d48 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -60,7 +60,8 @@ vmlinux_link() # skip output file argument shift - if is_enabled CONFIG_LTO_CLANG || is_enabled CONFIG_X86_KERNEL_IBT; then + if is_enabled CONFIG_LTO_CLANG || is_enabled CONFIG_X86_KERNEL_IBT || + is_enabled CONFIG_LIVEPATCH; then # Use vmlinux.o instead of performing the slow LTO link again. objs=vmlinux.o libs=