From: Daniel Vetter Subject: [PATCH 1/2] RFC: hung_task: taint kernel Date: Thu, 2 May 2019 21:42:07 +0200 Message-ID: <20190502194208.3535-1-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Intel Graphics Development Cc: LKML , Daniel Vetter , Daniel Vetter , Andrew Morton , Tetsuo Handa , Dmitry Vyukov , "Paul E. McKenney" , Valdis Kletnieks , Vitaly Kuznetsov , "Liu, Chuansheng" List-Id: intel-gfx@lists.freedesktop.org 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. Signed-off-by: Daniel Vetter Cc: Andrew Morton Cc: Tetsuo Handa Cc: Dmitry Vyukov Cc: "Paul E. McKenney" Cc: Valdis Kletnieks Cc: Daniel Vetter Cc: Vitaly Kuznetsov Cc: "Liu, Chuansheng" --- kernel/hung_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/hung_task.c b/kernel/hung_task.c index f108a95882c6..7fae16f1b49c 100644 --- a/kernel/hung_task.c +++ b/kernel/hung_task.c @@ -203,6 +203,8 @@ static void check_hung_uninterruptible_tasks(unsigned long timeout) if (hung_task_call_panic) { trigger_all_cpu_backtrace(); panic("hung_task: blocked tasks"); + } else { + add_taint(TAINT_WARN, LOCKDEP_STILL_OK); } } -- 2.20.1