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

From: Steven Rostedt

Date: Mon Jan 12 2026 - 10:46:52 EST


On Mon, 12 Jan 2026 01:42:47 -0800
Breno Leitao <leitao@xxxxxxxxxx> 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