Skip to content

Commit 1e0924b

Browse files
mhiramatctmarinas
authored andcommitted
arm64: Mark start_backtrace() notrace and NOKPROBE_SYMBOL
Mark the start_backtrace() as notrace and NOKPROBE_SYMBOL because this function is called from ftrace and lockdep to get the caller address via return_address(). The lockdep is used in kprobes, it should also be NOKPROBE_SYMBOL. Fixes: b07f349 ("arm64: stacktrace: Move start_backtrace() out of the header") Cc: <[email protected]> # 5.13.x Signed-off-by: Masami Hiramatsu <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/164301227374.1433152.12808232644267107415.stgit@devnote2 Signed-off-by: Catalin Marinas <[email protected]>
1 parent eb30d83 commit 1e0924b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/arm64/kernel/stacktrace.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
*/
3434

3535

36-
static void start_backtrace(struct stackframe *frame, unsigned long fp,
37-
unsigned long pc)
36+
static notrace void start_backtrace(struct stackframe *frame, unsigned long fp,
37+
unsigned long pc)
3838
{
3939
frame->fp = fp;
4040
frame->pc = pc;
@@ -55,6 +55,7 @@ static void start_backtrace(struct stackframe *frame, unsigned long fp,
5555
frame->prev_fp = 0;
5656
frame->prev_type = STACK_TYPE_UNKNOWN;
5757
}
58+
NOKPROBE_SYMBOL(start_backtrace);
5859

5960
/*
6061
* Unwind from one frame record (A) to the next frame record (B).

0 commit comments

Comments
 (0)