Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2444889imm; Sun, 5 Aug 2018 04:34:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc6D3mOOOOjJyZsIIKtRvh9JDLMuApdcnjvKVhW6DdLj3C54toQM7HbMtlCkRdoewEm8KFE X-Received: by 2002:a17:902:b60b:: with SMTP id b11-v6mr10151104pls.301.1533468860141; Sun, 05 Aug 2018 04:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533468860; cv=none; d=google.com; s=arc-20160816; b=s6Bw9V3mU7R+1NnfPFBdRURx33OOqP2raRNR1h9mBXZCJgKQNTJVx97rvdyHuMYzfy A4VgGpJ9jV9jCScIEW6NoDfsfTeEwf/KiezpsTN64UBZmbEseegne0GJtzxMcunXUxsN eBCO6tm6T/k00dtrg+fEd0Mt+0sbj3FsJR97IsgsIGDC/oVrFwHyp5IIoBD6KvJ3mFXp TA2Gxzwr1eSbyr6Bnkd5snidzWuUvwwbEfObnTrnFDLn0oPZ5W8kF9y1ZMm8Ai62oRXG jN0bgo6qYPTXsyGrB0zSX3Bi/yezfY2+/UgXISPwBZLlmhCJQw5jf0XIsxF/h0IzXKR5 Hqzw== 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=KKB/xy0EjI0siTpN1qO5WHf83MlHYkMNBY51mXK3fVQ=; b=ymM9jWlehIn9RQK0qdEeM9PmmL2D/ujfAveC13bbhdMvD64Mj0IJRr43YkXkHk0Quy 6kdtQ2iI74nufOQNsriLom/yTiye/5wPyjk/ZA4PZTVrtQzAFn6/PdCxeYQ/EVvj+Z9z sbkqhDTiKCzSwHH97J1PGjH4kiyi0RrQg+4DGt4Quxyl3ys9ExuJ5O+hSrm/EDyapA1h zGV7J38GaFEZP97RJmzgZ65nT6xbeLwL6WOZm3FPtksXlmfjFkBn8OWxn4QTu4qv/h86 hdra3fV8yGulvo4bnwPSW1SnVQQmS7QjAedBfVBK77GGz6zpBBqtyreuhFXzm7Jy12QU l5TA== 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 h5-v6si2748876pgv.641.2018.08.05.04.34.05; Sun, 05 Aug 2018 04:34:20 -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 S1726204AbeHENhd (ORCPT + 99 others); Sun, 5 Aug 2018 09:37:33 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:26021 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbeHENhd (ORCPT ); Sun, 5 Aug 2018 09:37:33 -0400 Received: from fsav102.sakura.ne.jp (fsav102.sakura.ne.jp [27.133.134.229]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w75BXG2S013048; Sun, 5 Aug 2018 20:33:16 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav102.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav102.sakura.ne.jp); Sun, 05 Aug 2018 20:33:16 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav102.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 w75BXFBI013045 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 5 Aug 2018 20:33:16 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Subject: Re: WARNING in try_charge To: mhocko@kernel.org, David Rientjes Cc: syzbot , cgroups@vger.kernel.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, vdavydov.dev@gmail.com References: <0000000000005e979605729c1564@google.com> <4660f164-b3e3-28a0-9898-718c5fa6b84d@I-love.SAKURA.ne.jp> From: Tetsuo Handa Message-ID: <3d4ca33d-54cb-ca5d-95cc-034fe62e5a35@I-love.SAKURA.ne.jp> Date: Sun, 5 Aug 2018 20:33:11 +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: <4660f164-b3e3-28a0-9898-718c5fa6b84d@I-love.SAKURA.ne.jp> 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/04 22:45, Tetsuo Handa wrote: > syzbot is hitting WARN(1) because of mem_cgroup_out_of_memory() == false. Since syzbot found a syz reproducer, I asked syzbot to try two patches. Setting MMF_OOM_SKIP under oom_lock to prevent from races ( https://syzkaller.appspot.com/x/patch.diff?x=10fb3fd0400000 ) was not sufficient. Waiting until __mmput() completes (with timeout using OOM score feedback) ( https://syzkaller.appspot.com/x/patch.diff?x=101e449c400000 ) solved this race.