debug: add more strict checking for show_regs [2/2]
authorJiamin Ma <jiamin.ma@amlogic.com>
Tue, 30 Apr 2019 08:07:17 +0000 (16:07 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 18 Jun 2019 05:36:36 +0000 (22:36 -0700)
commit35ffe6082ff7474ce19b11690dc31d3920401d46
tree23dff6ef32fe5105aa8fb9acee94536c1da42a51
parentb0c30ab5a4cd0c1af4b9e7385f3c38333905fc77
debug: add more strict checking for show_regs [2/2]

PD#SWPL-7711

Problem:
Executing echo l > /proc/sysrq-trigger each 5 seconds for about
15 minius will trigger hardlockup

Solution:
Add more strict checking for show_regs to filter out addresses
in secure monitor region and ioremap region, deferencing which
triggers external abort on none-linefetch, and finally leading
to hardlockup

Verify:
Locally pass on U200

Change-Id: I6bd219e7dc3ad29904e6bd1b7d2f4cfb3928d8ed
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
arch/arm/kernel/process.c
arch/arm64/kernel/process.c
drivers/amlogic/secmon/secmon.c
drivers/tty/sysrq.c
include/linux/amlogic/secmon.h
lib/nmi_backtrace.c
mm/vmalloc.c