From 15c998e5d69e46de1661065ec4648c7b0cd4b4e7 Mon Sep 17 00:00:00 2001 From: Jiamin Ma Date: Thu, 25 Apr 2019 09:39:09 +0800 Subject: [PATCH] sysrq: temporarily disable showing stacks of active CPUs [1/1] PD#SWPL-7711 Problem: echo l > /proc/sysrq-trigger leading to kernel crash and lockup Solution: temporarily disable showing stacks of active CPUs Verify: U200 Change-Id: Id7f19425d754d9249b3999189dd257f8b30bae2d Signed-off-by: Jiamin Ma --- drivers/tty/sysrq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 359fbd5..649d930 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -258,6 +258,13 @@ static DECLARE_WORK(sysrq_showallcpus, sysrq_showregs_othercpus); static void sysrq_handle_showallcpus(int key) { /* + * Temporarily disable this function + * Remove it later + */ +#ifdef CONFIG_AMLOGIC_MODIFY + return; +#endif + /* * Fall back to the workqueue based printing if the * backtrace printing did not succeed or the * architecture has no support for it: -- 2.7.4