From ae7eda212f38e24b4c68a0b65784fbb6d4716ea3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 16 Oct 2016 08:13:55 +0200 Subject: report: add another report format for hung tasks --- report/report.go | 4 ++++ report/report_test.go | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) (limited to 'report') diff --git a/report/report.go b/report/report.go index df241ed24..241f806b5 100644 --- a/report/report.go +++ b/report/report.go @@ -111,6 +111,10 @@ var oopses = []*oops{ compile("INFO: suspicious RCU usage(?:.*\n.*)+(?: |\n|\t){{SRC}}"), "suspicious RCU usage at %[1]v", }, + { + compile("INFO: task .* blocked for more than [0-9]+ seconds"), + "INFO: task hung", + }, }, }, &oops{ diff --git a/report/report_test.go b/report/report_test.go index f7f3922b0..d11e8f313 100644 --- a/report/report_test.go +++ b/report/report_test.go @@ -408,6 +408,27 @@ BUG: soft lockup - CPU#3 stuck for 11s! [syz-executor:643] BUG: spinlock lockup suspected on CPU#2, syz-executor/12636 `: `BUG: soft lockup`, + ` +[ 843.240752] INFO: task getty:2986 blocked for more than 120 seconds. +[ 843.247365] Not tainted 3.18.0-13280-g93f6785-dirty #12 +[ 843.253777] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. +[ 843.261764] getty D ffffffff83e27d60 28152 2986 1 0x00000002 +[ 843.269316] ffff88005bb6f908 0000000000000046 ffff880050b6ab70 ffff880061e1c5d0 +[ 843.277435] fffffbfff07c4802 ffff880061e1cde8 ffffffff83e27d60 ffff88005cb71580 +[ 843.285515] ffff88005bb6f968 0000000000000000 1ffff1000b76df2b ffff88005cb71580 +[ 843.293802] Call Trace: +[ 843.296385] [] schedule+0x64/0x160 +[ 843.301593] [] schedule_timeout+0x2fa/0x5d0 +[ 843.307563] [] ? console_conditional_schedule+0x30/0x30 +[ 843.314790] [] ? pick_next_task_fair+0xeb2/0x1680 +[ 843.321296] [] ? check_preemption_disabled+0x3d/0x210 +[ 843.328311] [] ldsem_down_write+0x1ac/0x357 +[ 843.334295] [] ? ldsem_down_read+0x3a0/0x3a0 +[ 843.340437] [] ? preempt_schedule+0x62/0xa0 +[ 843.346418] [] tty_ldisc_lock_pair_timeout+0xb2/0x160 +[ 843.353363] [] tty_ldisc_hangup+0x21f/0x720 +`: `INFO: task hung`, + ` BUG UNIX (Not tainted): kasan: bad access detected `: "", -- cgit mrf-deployment