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:07:38 +0000 (19:07 -0700)
commitd6691a7e2defd91778b8ad3dabbf6b41471b78d7
treebc20a25701db9efd759d81bc9115ceaeff54f5e9
parent97d6a2393ceb900732a152aa6453be137e56a65a
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