Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3492667imm; Mon, 6 Aug 2018 05:53:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfAr5B+Oz5uCVrV9IKZhMRrYMCS1lppsF6zf1NjixsKRphPwDsqzUX1+yQLqYnOMNpdiT9B X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr13679234plv.342.1533560023760; Mon, 06 Aug 2018 05:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533560023; cv=none; d=google.com; s=arc-20160816; b=rRfmcnQlE1f4MGfGheEapjp7De4FUaGZSM51s28lyZf4poLbAQnlCMrFcgS7MjUFKZ 6CFTw7TwN8DdrsRVCQ0ubC4Yqqy7QnjSWqXWNNA1nwaFy7o2cECNCyTgUbLGyBBoYP64 UCw2fz7tTeSCnaSbxrBxIcy25eU0ISWkeQtMbjnFrIKUCpsNplif6JPxp9sDcz7UEkYU m38KA1849wu9ubLlYD7zGwxEy9cdJJQwA3PauHeKPppmP9Qf3yWQRwr+abg/rM6X3qLE hPrMz2qUOkfxWLsR8lbGwNOrrkqXrcNJyySw36r1OP0v5157pSR/LrECFiAilHzPrE3o GJ6Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=cGcWiirbvFnFhyTL/iwVgzoF/uYRQcPKIIxt4wvfDLs=; b=tPsBAWK5ciOiFl22McWVh1t5rJCBGD7h4q6P8ms8UwLQWaieFDkqnmqB9eUYUMDxET SB72DTY7jSQmJIh+C71mD0h9hSki4sL9xK+Rl7GdH+I0JQVw67qpZTcpb0TPjiD65Hoq EMEsi6H1Is027z4/qI1Ydp3T4p/kQYgIJ0vo8KW/ZyHMygJM24SQg9muF0hl89hHg6nG ioszXTXAvalhZHPaOlC0YC03/2b1kqc143SwOxW69waUND6KrT1j5kqzt2WRuZaX+1J5 6wwMoqaIFomJh4zGaSmGKfZ7M0rEX37m5Uk62t6xQhT5fbkcNIVQrfxdizk7AqSZJH8C BEDA== ARC-Authentication-Results: i=1; mx.google.com; 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 a17-v6si13491582pgb.369.2018.08.06.05.53.28; Mon, 06 Aug 2018 05:53:43 -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; 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 S1729830AbeHFMzd (ORCPT + 99 others); Mon, 6 Aug 2018 08:55:33 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:62723 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbeHFMzc (ORCPT ); Mon, 6 Aug 2018 08:55:32 -0400 Received: from fsav105.sakura.ne.jp (fsav105.sakura.ne.jp [27.133.134.232]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w76Al3q4084123; Mon, 6 Aug 2018 19:47:03 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav105.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav105.sakura.ne.jp); Mon, 06 Aug 2018 19:47:03 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav105.sakura.ne.jp) Received: from [192.168.1.8] (softbank126074194044.bbtec.net [126.74.194.44]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w76Al2ZR084104 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Aug 2018 19:47:03 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Subject: Re: WARNING in try_charge To: Dmitry Vyukov , Michal Hocko Cc: syzbot , cgroups@vger.kernel.org, Johannes Weiner , LKML , Linux-MM , syzkaller-bugs , Vladimir Davydov References: <0000000000005e979605729c1564@google.com> <20180806091552.GE19540@dhcp22.suse.cz> <20180806094827.GH19540@dhcp22.suse.cz> From: Tetsuo Handa Message-ID: <884de816-671a-44d4-a6a1-2ad7eff53715@I-love.SAKURA.ne.jp> Date: Mon, 6 Aug 2018 19:47:00 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/08/06 19:39, Dmitry Vyukov wrote: > On Mon, Aug 6, 2018 at 11:48 AM, Michal Hocko wrote: >> Btw. running with the above diff on top might help us to ideantify >> whether this is a pre-mature warning or a valid one. Still useful to >> find out. Since syzbot already found a syz reproducer, you can ask syzbot to test it. > > The bug report has a reproducer, so you can run it with the patch. Or > ask syzbot to test your patch: > https://github.com/google/syzkaller/blob/master/docs/syzbot.md#testing-patches > Which basically boils down to saying: > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master Excuse me, but this is linux-next only problem. Therefore, #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 4603ad75c9a9..852cd3dbdcd9 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1388,6 +1388,8 @@ static bool mem_cgroup_out_of_memory(struct mem_cgroup *memcg, gfp_t gfp_mask, bool ret; mutex_lock(&oom_lock); + pr_info("task=%s pid=%d invoked memcg oom killer. oom_victim=%d\n", + current->comm, current->pid, tsk_is_oom_victim(current)); ret = out_of_memory(&oc); mutex_unlock(&oom_lock); return ret; F.Y.I. Waiting until __mmput() completes (with timeout using OOM score feedback) ( https://syzkaller.appspot.com/x/patch.diff?x=101e449c400000 ) solves this race.