From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967259AbcHBPYE (ORCPT ); Tue, 2 Aug 2016 11:24:04 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57025 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965807AbcHBPXT (ORCPT ); Tue, 2 Aug 2016 11:23:19 -0400 From: robert.foss@collabora.com To: adurbin@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, robert.foss@collabora.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks Date: Tue, 2 Aug 2016 11:23:11 -0400 Message-Id: <1470151391-16420-1-git-send-email-robert.foss@collabora.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aaron Durbin When the panic path is taken for khungtaskd dump all tasks with the UNINTERUPTIBLE state. That way, any inter-dependent tasks that caused one another to hang will be saved in the crash output. Signed-off-by: Aaron Durbin Tested-by: Robert Foss Signed-off-by: Robert Foss --- kernel/hung_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/hung_task.c b/kernel/hung_task.c index d234022..946caf9 100644 --- a/kernel/hung_task.c +++ b/kernel/hung_task.c @@ -122,6 +122,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout) touch_nmi_watchdog(); if (sysctl_hung_task_panic) { + /* Dump all tasks. */ + show_state_filter(TASK_UNINTERRUPTIBLE); trigger_all_cpu_backtrace(); panic("hung_task: blocked tasks"); } -- 2.7.4