Thread (6 messages) 6 messages, 4 authors, 2026-01-12

Re: [PATCH] arm64/mm: Fix annotated branch unbootable kernel

From: Steven Rostedt <rostedt@kernel.org>
Date: 2026-01-09 19:49:53
Also in: linux-arm-kernel, lkml, stable

[ Resending with my kernel.org email, as I received a bunch of messages from gmail saying it's blocking me :-p ]

On Mon, 5 Jan 2026 21:15:40 +0000
Will Deacon [off-list ref] wrote:
quoted
Another approach is to disable profiling on all arch/arm64 code, similarly to
x86, where DISABLE_BRANCH_PROFILING is called for all arch/x86 code. See
commit 2cbb20b008dba ("tracing: Disable branch profiling in noinstr
code").  
Yes, let's start with arch/arm64/. We know that's safe and then if
somebody wants to make it finer-grained, it's on them to figure out a
way to do it without playing whack-a-mole.
OK, so by adding -DDISABLE_BRANCH_PROFILING to the Makefile configs and for
the files that were audited, could be opt-in?

CFLAGS_REMOVE_<autdit_file>.o = -DDISABLE_BRANCH_PROFILING

And add that for each file that has been fully audited?

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help