[PATCH] powerpc/ftrace: Fix ftrace bug with KASAN=y
Michael Ellerman
patch-notifications at ellerman.id.au
Sun Nov 17 23:09:57 AEDT 2024
On Thu, 07 Nov 2024 22:16:30 +1100, Michael Ellerman wrote:
> Booting a KASAN=y kernel with the recently added ftrace out-of-line
> support causes a warning at boot:
>
> ------------[ cut here ]------------
> Stub index overflow (1729 > 1728)
> WARNING: CPU: 0 PID: 0 at arch/powerpc/kernel/trace/ftrace.c:209 ftrace_init_nop+0x408/0x444
> ...
> NIP ftrace_init_nop+0x408/0x444
> LR ftrace_init_nop+0x404/0x444
> Call Trace:
> ftrace_init_nop+0x404/0x444 (unreliable)
> ftrace_process_locs+0x544/0x8a0
> ftrace_init+0xb4/0x22c
> start_kernel+0x1dc/0x4d4
> start_here_common+0x1c/0x20
> ...
> ftrace failed to modify
> [<c0000000030beddc>] _sub_I_65535_1+0x8/0x3c
> actual: 00:00:00:60
> Initializing ftrace call sites
> ftrace record flags: 0
> (0)
> expected tramp: c00000000008b418
> ------------[ cut here ]------------
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/ftrace: Fix ftrace bug with KASAN=y
https://git.kernel.org/powerpc/c/cfec8463d9a19ec043845525fe5fd675e59a8aab
cheers
More information about the Linuxppc-dev
mailing list