arm64: ftrace: enable graph FP test
authorMark Rutland <mark.rutland@arm.com>
Thu, 15 Nov 2018 22:42:00 +0000 (22:42 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 30 Nov 2018 13:29:04 +0000 (13:29 +0000)
commit5c176aff5b5a7027840c37da9d48a8f9cedb08b9
tree10c88db9406e45311306c98077174aa713085bf3
parente4fe196642678565766815d99ab98a3a32d72dd4
arm64: ftrace: enable graph FP test

The core frace code has an optional sanity check on the frame pointer
passed by ftrace_graph_caller and return_to_handler. This is cheap,
useful, and enabled unconditionally on x86, sparc, and riscv.

Let's do the same on arm64, so that we can catch any problems early.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Torsten Duwe <duwe@suse.de>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/ftrace.h
arch/arm64/kernel/entry-ftrace.S