backtrace: add validation checking for fp [1/1]
authorJiamin Ma <jiamin.ma@amlogic.com>
Fri, 11 Oct 2019 09:34:01 +0000 (17:34 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 15 Oct 2019 02:08:38 +0000 (19:08 -0700)
commit7496d072393ff4e0237ef4fea2d3442dd2d5c9c2
tree699673531c993a0140336e3a75d326ddffdeb6f3
parent19270dfc8ebfe4935b3ea9ecc83db66ba9bc6a2b
backtrace: add validation checking for fp [1/1]

PD#SWPL-15010

Problem:
Crash if keep executing echo w > /proc/sysrq-trigger
on android platform

Solution:
Add necessary checking for the fp to be dereferenced in
dump_backtrace_entry with VMAP stack enabled

Verify:
U212

Change-Id: I69d8d7353cf99a71dc3e7640efa1d460ef2f5f9a
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
arch/arm64/kernel/traps.c