From patchwork Fri Sep 7 11:23:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tetsuo Handa X-Patchwork-Id: 10592081 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1469F920 for ; Fri, 7 Sep 2018 11:24:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 098AD2AB48 for ; Fri, 7 Sep 2018 11:24:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F23CA2AEA0; Fri, 7 Sep 2018 11:24:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 922CD2AB48 for ; Fri, 7 Sep 2018 11:24:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 998716B7DDB; Fri, 7 Sep 2018 07:24:05 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 948F56B7DFB; Fri, 7 Sep 2018 07:24:05 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 85F426B7DFC; Fri, 7 Sep 2018 07:24:05 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by kanga.kvack.org (Postfix) with ESMTP id 505876B7DDB for ; Fri, 7 Sep 2018 07:24:05 -0400 (EDT) Received: by mail-oi0-f71.google.com with SMTP id b8-v6so16684724oib.4 for ; Fri, 07 Sep 2018 04:24:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=pIPqlao76hx33CmNtZNnfNK1O/vfcdtAAVFm8DheH6I=; b=T+Djgydy1oV9PJ9f+TPPunSGuT0tLn8aHg62AiNuBkF9e4OSEubNeMWBK3gUlMU39Q nHPTdR6gtx/tCuMHUT77EEvAamOga7yiL4CLWKwLwVaqkQ82iIr5y6x0op6pjds/oarB C47+IRaKIccPHtaFTQvL7VmaNI+dTie4j85lkl5RyZy+V3g3kAXpT3tPEpEd8psk2xod RIV1BbhDH30Xk9qyyRjD7pgwamaSb6yJakV2FSdNyvclFusx6/mX1RHRlEy5hqFmMqQr ucEsBVkSCXbYW6tGo5pmWgCvIkxqQN11Ylh34+9qJY+KOXF72wyqNlcSMUrfQWzFbKcU pdYQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) smtp.mailfrom=penguin-kernel@i-love.sakura.ne.jp X-Gm-Message-State: APzg51BJxaNE+PNeumu0U0TFJXFzAdMbmChEUb0qabNRfB68CYypDhfL D6IhY8loRxyJAYkUVNR8uv2QRp6MfRDQLyOfATXZX0Fz1xMQ2LqRzGYvXMoAy32kirRt2B8ht5X 8cxj1WA9c0EQw/rcNuAKPTEn0NTTw5JRbC44PD1QRFod+HFCy4ufhSOLnpBQJX9vY3g== X-Received: by 2002:aca:d452:: with SMTP id l79-v6mr7175323oig.222.1536319445065; Fri, 07 Sep 2018 04:24:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaesGfngOYEiaykA2fZ+6RzW3fCQFKxYczHjmYoo5S2EQ12j4yfM+66zv1neMV43pNj2nMe X-Received: by 2002:aca:d452:: with SMTP id l79-v6mr7175267oig.222.1536319444249; Fri, 07 Sep 2018 04:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536319444; cv=none; d=google.com; s=arc-20160816; b=EsjKPFiTKxl8LKB56WzTN0ppHbgOy5U1/1Xa7jIVq2jiXqthTbXU3vznyOa9mJPC6y F5k8pnSjKx0p+m1RmBhNA8u3U+bifU410CEPgWFfP0XR8gkHTB5qomeQsRZS4aLgAZD0 dySS3rWXDabzkgii5TKN/IFMaRBQr3MnNkeM/mQLNX1Nprbk03jknU9jLBTEaq3LbPrN GFKBtwjL104y2zFBbsvRYmiUwtySGMPAF9YpiAkUjQV0kDF+6eORuQg9P1gVLHHnAXhT q4oKoE++mW+ByPjmuNpBTU8obr06T4xMJ35pCjCNE30WNfJvk6AaQAKnyGKd0uIULaa7 sIgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=pIPqlao76hx33CmNtZNnfNK1O/vfcdtAAVFm8DheH6I=; b=k9I+rRVOLhYqLRvjT/RiXi2/9dbKpdKi9LgeNqPRTq8eItHxVxgYgzKjdrvLuN1W5Y LKGiH98jpnA4onHJPvZOwVowKuS/qHxuix65e3Z/Ll/xCWcwcrmTsnNTBd4tKOvnuz38 1xf12Jr8m6W0YhScJO1iThv1mFzPfxwccH9lwiu0HOyvDVMqoUioumcuaqio86wIAGT+ qrbHExmeHndEl1iJnWXqgkMuH3ubEK3BTb0F6a8ZZ6UNxPANYW1iXzFquNl4LASeAejS /PU0Ht1AezK3wSlsLB9bMGEnAQfuqzAChRtj6mbT0XNRnwc/dWb/Rhnp5yuzVQZ13KIr M+Dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) smtp.mailfrom=penguin-kernel@i-love.sakura.ne.jp Received: from www262.sakura.ne.jp (www262.sakura.ne.jp. [202.181.97.72]) by mx.google.com with ESMTPS id d82-v6si5660161oic.195.2018.09.07.04.24.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 04:24:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) client-ip=202.181.97.72; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) smtp.mailfrom=penguin-kernel@i-love.sakura.ne.jp Received: from fsav101.sakura.ne.jp (fsav101.sakura.ne.jp [27.133.134.228]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w87BNqnf034927; Fri, 7 Sep 2018 20:23:52 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav101.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav101.sakura.ne.jp); Fri, 07 Sep 2018 20:23:52 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav101.sakura.ne.jp) Received: from ccsecurity.localdomain (softbank060157066051.bbtec.net [60.157.66.51]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w87BNlls034900 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 7 Sep 2018 20:23:51 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) From: Tetsuo Handa To: Andrew Morton Cc: linux-mm@kvack.org, Tetsuo Handa , Dmitry Vyukov , Michal Hocko Subject: [PATCH] syzbot: Dump all threads upon OOM. Date: Fri, 7 Sep 2018 20:23:43 +0900 Message-Id: <1536319423-9344-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> X-Mailer: git-send-email 1.8.3.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP syzbot is getting stalls with linux-next kernels because dump_tasks() from out_of_memory() is printing 6600 tasks. Most of these tasks are syzbot processes but syzbot is supposed not to create so many processes. Therefore, let's start from checking what these tasks are doing. This change will be removed after the bug is fixed. Signed-off-by: Tetsuo Handa Cc: Dmitry Vyukov Cc: Michal Hocko --- mm/oom_kill.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index f10aa53..867fd6a 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include "internal.h" @@ -446,6 +447,10 @@ static void dump_header(struct oom_control *oc, struct task_struct *p) if (is_dump_unreclaim_slabs()) dump_unreclaimable_slab(); } +#ifdef CONFIG_DEBUG_AID_FOR_SYZBOT + show_state(); + panic("Out of memory"); +#endif if (sysctl_oom_dump_tasks) dump_tasks(oc->memcg, oc->nodemask); }