sysrq: temporarily disable showing stacks of active CPUs [1/1]
authorJiamin Ma <jiamin.ma@amlogic.com>
Thu, 25 Apr 2019 01:39:09 +0000 (09:39 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 25 Apr 2019 06:41:01 +0000 (23:41 -0700)
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 <jiamin.ma@amlogic.com>
drivers/tty/sysrq.c

index 359fbd5..649d930 100644 (file)
@@ -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: