Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7598755yba; Thu, 2 May 2019 12:43:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJsLCYaFlr311xeJcqtArGMi/Mz6Q65XkhoQmAa+fo0vRw0W4dChC3oIhUtJLIicYhxRxT X-Received: by 2002:a17:902:8609:: with SMTP id f9mr5451315plo.32.1556826226485; Thu, 02 May 2019 12:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556826226; cv=none; d=google.com; s=arc-20160816; b=1I6JU/3RJeVkNI1OTomMy049HbNWWW4TaybjWXa9MhHMYl8Xyc84okCwgWqKVXPH8u 84/Rw0SEkeJK7p5HlgVzYmfZ1SEoBN78iC2Tdu/tFPtVKFWu0FuXpwgi/eylG5aS6TOn ie/RBboflbrclxU4LH6VCTHNGY2oMc7vkVChAB5+dLS4uJ/XRiRQnDJLolQRBnwZyyef jCDLNKD8WOMSzG0PM4JocHG4SOpZ5XqBno2PY/3TE4IievN1Bo2/AhfB3X0JZrZsTNvS N2/20AuPmqHVxA5suzjqJulc2GWW0O1QTj3WR21YG9M9vxKBBXEM3KueRLKDLAWN3izQ eSgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=smxA1EiAOM4O+e+0r4yKbO7u3umfCKvxARWKKLxNbAs=; b=TZoyS5VbCDw9EcpuMZbloezZ9an1yTweogaybRvyeKC0ojhTRd3+D4xE3Dc+m7IFWI IZNwt9AGsnr5ikkoA0AVasT7dUIVZT//dFjlfR/o9LaOIVrlBmoyk2uQp0YGGnIUzUiY XxQrsFpWOSNKqCAMF9WFeZPA+vP1h1tofmj47CoUbZwT8rANlAYa0B1BJmS756zr2XHV uNYsDm2dv/GABEGUkHCpQtzEpAz/lOS7Vuzgj0v0RbHzbSgvNZhokkM4TwQuRfUKJ0mN o8+bj3EAdJtxjDOcVQJKHBLxSqAj/hNRINJlYLltejd73mY4FM+xluPt0sEf/4VutFmK xfDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=WR2z2Dg1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20si42777354pgs.509.2019.05.02.12.43.28; Thu, 02 May 2019 12:43:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=WR2z2Dg1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726407AbfEBTmS (ORCPT + 99 others); Thu, 2 May 2019 15:42:18 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44676 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfEBTmR (ORCPT ); Thu, 2 May 2019 15:42:17 -0400 Received: by mail-ed1-f68.google.com with SMTP id b8so3182314edm.11 for ; Thu, 02 May 2019 12:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=smxA1EiAOM4O+e+0r4yKbO7u3umfCKvxARWKKLxNbAs=; b=WR2z2Dg1GwCmYak4J9AuuoWcQuVQmqMjWUu+Q54hC51oh46tx59Mezt76Twu6nyOx7 2XESGkaJ7es5OvX7Vie/S849j2NCYt1NokepSyOcg3e1lXUiuMsgqeKOwVLhEzPvBCIl jQ6RjVRxX2/OkIBALKfGUVaeCukWPniuFYRuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=smxA1EiAOM4O+e+0r4yKbO7u3umfCKvxARWKKLxNbAs=; b=uhIQjwZj4sZw603UPr84KIFuj7h63rsNTcDSs91NoF2cSCsBcWhzh0dCFGZBo5BzrK GkegOeLXZe9NcREaEoUffbXh3nXkWdx4Nv6sbTF5atYQCW3mrpWvem6HMFKmluv1abvN fOayga/qatGHl2Mg5V/EJD6sAKrEcvXgPBVVMTWeoAYT7ShbhafRudhFkpu8/kc22iQT opkGABQ/YVAK5mt8h9jUGveoZ/b83VndpNARpgT4lfgz8vIV3wyvbs/dhI92OrFMBmoN Dz1TPnGOT/KL4+QwMjpFndfrQ1fcDC+Dhu7pIsMaV0pGWtzI8opMBdprUrKTjHTC74hr sGNQ== X-Gm-Message-State: APjAAAWM5+riaUOqEOoBuwWLwy8JTMDooNNKBhOayt5CAaiBczVGZMK2 +GSEOIIhlDjY1GlrtJK2HshbdnTyYdE= X-Received: by 2002:a50:a3dc:: with SMTP id t28mr3740043edb.256.1556826135961; Thu, 02 May 2019 12:42:15 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id l43sm718924eda.70.2019.05.02.12.42.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2019 12:42:14 -0700 (PDT) From: Daniel Vetter 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" 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> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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