Skip to content
Snippets Groups Projects
Commit 4e1e425a authored by Simona Vetter's avatar Simona Vetter Committed by Jani Nikula
Browse files

RFC: hung_task: taint kernel

There's the hung_task_panic sysctl, but that's a bit an extreme measure.
As a fallback taint at least the machine.

Our CI uses this to decide when a reboot is necessary, plus to figure
out whether the kernel is still happy.

v2: Works much better when I put the else { add_taint() } at the right
place.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/8034


Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: "Paul E. McKenney" <paulmck@linux.ibm.com>
Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: "Liu, Chuansheng" <chuansheng.liu@intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk> (for core-for-CI)
Link: https://patchwork.freedesktop.org/patch/msgid/20190502204648.5537-1-daniel.vetter@ffwll.ch


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 97a3cbd8
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout) ...@@ -121,6 +121,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
console_verbose(); console_verbose();
hung_task_show_lock = true; hung_task_show_lock = true;
hung_task_call_panic = true; hung_task_call_panic = true;
} else {
add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
} }
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment