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

Steven Rostedt rostedt at kernel.org
Mon Jan 12 07:46:53 PST 2026


On Mon, 12 Jan 2026 01:42:47 -0800
Breno Leitao <leitao at debian.org> wrote:

> > OK, so by adding -DDISABLE_BRANCH_PROFILING to the Makefile configs and for
> > the files that were audited, could be opt-in?  
> 
> How to do the audit in this case? I suppose we want to disable branch
> profiling for files that have any function that would eventually call
> noinstr functions, right?

IIUC, noinstr is mostly used for the transition between user space and the
kernel (interrupts, exceptions, syscalls, etc). There shouldn't be any
random calls to noinstr functions unless it's going into user space, right?

-- Steve



More information about the linux-arm-kernel mailing list