x86/stackframe, x86/kprobes: Fix frame pointer annotations
authorPeter Zijlstra <peterz@infradead.org>
Tue, 7 May 2019 21:25:46 +0000 (23:25 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Jun 2019 08:23:46 +0000 (10:23 +0200)
commit4201311dae59781fb19c40adddda45bf3c562b63
tree76cc1a808cb3a4cdcb885ce5c0c9dad15fa66f22
parenta9b3c6998d4a7d53a787cf4d0fd4a4c11239e517
x86/stackframe, x86/kprobes: Fix frame pointer annotations

The kprobe trampolines have a FRAME_POINTER annotation that makes no
sense. It marks the frame in the middle of pt_regs, at the place of
saving BP.

Change it to mark the pt_regs frame as per the ENCODE_FRAME_POINTER
from the respective entry_*.S.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/kprobes/common.h