Merge branch 'x86/urgent' into x86/core, to resolve conflict
authorIngo Molnar <mingo@kernel.org>
Sat, 22 Oct 2022 07:55:06 +0000 (09:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 22 Oct 2022 08:06:18 +0000 (10:06 +0200)
There's a conflict between the call-depth tracking commits in x86/core:

  ee3e2469b346 ("x86/ftrace: Make it call depth tracking aware")
  36b64f101219 ("x86/ftrace: Rebalance RSB")
  eac828eaef29 ("x86/ftrace: Remove ftrace_epilogue()")

And these fixes in x86/urgent:

  883bbbffa5a4 ("ftrace,kcfi: Separate ftrace_stub() and ftrace_stub_graph()")
  b5f1fc318440 ("x86/ftrace: Remove ftrace_epilogue()")

It's non-trivial overlapping modifications - resolve them.

 Conflicts:
arch/x86/kernel/ftrace_64.S

Signed-off-by: Ingo Molnar <mingo@kernel.org>
1  2 
arch/x86/Kconfig
arch/x86/kernel/ftrace_64.S
include/asm-generic/vmlinux.lds.h

Simple merge
@@@ -3,8 -3,8 +3,9 @@@
   *  Copyright (C) 2014  Steven Rostedt, Red Hat Inc
   */
  
 -#include <linux/linkage.h>
+ #include <linux/cfi_types.h>
 +#include <linux/linkage.h>
 +#include <asm/asm-offsets.h>
  #include <asm/ptrace.h>
  #include <asm/ftrace.h>
  #include <asm/export.h>
  
        .endm
  
+ SYM_TYPED_FUNC_START(ftrace_stub)
++      CALL_DEPTH_ACCOUNT
+       RET
+ SYM_FUNC_END(ftrace_stub)
+ SYM_TYPED_FUNC_START(ftrace_stub_graph)
++      CALL_DEPTH_ACCOUNT
+       RET
+ SYM_FUNC_END(ftrace_stub_graph)
  #ifdef CONFIG_DYNAMIC_FTRACE
  
  SYM_FUNC_START(__fentry__)
@@@ -305,13 -284,8 +311,10 @@@ STACK_FRAME_NON_STANDARD_FP(ftrace_regs
  #else /* ! CONFIG_DYNAMIC_FTRACE */
  
  SYM_FUNC_START(__fentry__)
 +      CALL_DEPTH_ACCOUNT
 +
        cmpq $ftrace_stub, ftrace_trace_function
        jnz trace
- SYM_INNER_LABEL(ftrace_stub, SYM_L_GLOBAL)
-       ENDBR
        RET
  
  trace:
Simple merge