From: Josh Poimboeuf <jpoimboe@kernel.org>
To: Seke Kazuru <kazuruuni@gmail.com>
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
Date: Tue, 1 Dec 2026 14:34:37 -0800 [thread overview]
Message-ID: <aw9LdSYXLo6ksr9X@jpoimboe> (raw)
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 <kazuruuni@gmail.com>
Queued, thanks!
--
Josh
prev parent reply other threads:[~2026-12-01 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 15:17 [PATCH] objtool/klp: Build x86 test fixtures with -fcf-protection=none Seke Kazuru
2026-12-01 22:34 ` Josh Poimboeuf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw9LdSYXLo6ksr9X@jpoimboe \
--to=jpoimboe@kernel.org \
--cc=joe.lawrence@redhat.com \
--cc=kazuruuni@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=peterz@infradead.org \
--cc=pmladek@suse.com \
--cc=song@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox