From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796164479; b=nrjkuP0E0lJrldY/7byMKXRjWS7aVZfOmCZTLJif1NvOhRUcBpa+9jbnVy4UEroFy7e/ 8GlJUeRIz7xhHHpleaXTgGdPFDFU+q93JX9Ylr9qOsIi1mrkQanYzc1781sxWBHydLS45 2ac2oRFE+GlQBhelQgz2TpNkc95hS3xJeLwbS2LECq0NR5e2L7rOx5OKVAyQWDc9AHbZW UOu2seGarhhMSRsBfvOSVLT3Saa9IxgrhMjn9bay16dIBC/F6JO11N5X6dHA2XTBVRjmK c+bwAFS76Rjr2+7Rzqz6ngSqpCjGPsAIR1j8i7UMB5c31fZZC0GR2HYmGYqDb8uiBJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796164479; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=tkIFtxvT3Cz+neErOfBRd94E4IureQBNLjMWTcGACSs=; b=2PTOPmIFDJ0tsxBLI6S6KxPPXIHeBX64A/etOGxOqSNOKwjrTiDTVL399THwb9xCVU20 5QuAg5j/2VSP5Vprv1mKerdilkUJ2FYfpNyIPThe0Y3Mg560HemyWHlwJVm0/Bul+CiA9 UH5b8GKLqoLFx84meTOAgpXj6DfvoAo8Z9CQbnmo8BrlOhs4cIfij/0hGldJm+Qu7JR5I Caq1NKwkDSybj05WN2L5KPUMysezva9gHQI1w2uT2jMnFCfI0AYyeAjS9whA4B2pflM6E SscT16Qn8Q878roq5RAwHXuS6WHezB0nWAIKzE58LAx2qSgdZHOiTfF2RkjamNYiWLQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=La+r3zJH; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9948606A320; Tue, 1 Dec 2026 22:34:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=La+r3zJH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 151791F000C1; Tue, 1 Dec 2026 22:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796164479; bh=tkIFtxvT3Cz+neErOfBRd94E4IureQBNLjMWTcGACSs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=La+r3zJHWfXdCHAkWEpt9VgHlwc3INkVocS2jBEUH1fhwazVaKwQJ3lcMuWDSmqZM B/jtwpTKJKH9Smmy6zRApiV8yJ4EOzjsN4ykkCnJ83tPtWQnY4mx5Il0rOdSKkRLnI nfttoLCXhkYmOaQ7tKhVrtANtQ6El7xxOCEzU5RECfSjeNuCVRY0JLeA+9joTq3xz2 1gqT/a1mH2aO4azED3DevjsIpp3K82V1t1LWnGSBzifBc5Jhg3Iv+OHHwkre+zZDQg Z47snkLMDBtCnpNNhbHtppY4fA28srIaF5LFlil+Kv1Jf2x4Dcn/qm3D3m+rVhZ34y CoixZzYG2LiTQ== Date: Tue, 1 Dec 2026 14:34:37 -0800 From: Josh Poimboeuf To: Seke Kazuru Cc: joe.lawrence@redhat.com, live-patching@vger.kernel.org, mbenes@suse.cz, pmladek@suse.com, song@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool/klp: Build x86 test fixtures with -fcf-protection=none Message-ID: References: <20261201151738.1776-1-kazuruuni@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20261201151738.1776-1-kazuruuni@gmail.com> On Tue, Dec 01, 2026 at 05:17:38PM +0200, Seke Kazuru wrote: > x86 kernels always choose -fcf-protection themselves: =branch with > CONFIG_X86_KERNEL_IBT, =none without (arch/x86/Makefile). The test > fixtures pass neither, so they get the compiler's default, and Ubuntu's > gcc defaults to =full. That puts an ENDBR at the start of a global > function but not of a static one, so a patch which only changes a > function's linkage changes its code. > > test-local-to-global-flip makes exactly that change and fails with > Ubuntu's gcc 11 to 14: flipped_up gains an ENDBR, klp diff rightly > reports it as changed and clones it, and the test, which expects it to > be correlated, fails. > > Build the fixtures for the kernel without IBT, as the kernel would. A > test about IBT can still override it. > > Verified with Ubuntu gcc 11, 13 and 14, Debian gcc 16 and Clang 18 and > 23: test-local-to-global-flip fails on the three Ubuntu compilers before > this change and passes after it, and no other test changes on any of > the six. > > Assisted-by: Claude:claude-opus-5-5 > Signed-off-by: Seke Kazuru Queued, thanks! -- Josh