Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6979703ybl; Wed, 15 Jan 2020 13:24:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyebxk8GwvL27UFPbW1PhudwbDOkIRl7Njno/aiQqvu86cukOPG6JrzhZs+gk1MiRFkKqvM X-Received: by 2002:a9d:7:: with SMTP id 7mr4034215ota.26.1579123456935; Wed, 15 Jan 2020 13:24:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579123456; cv=none; d=google.com; s=arc-20160816; b=VU/bYtqYuAjtaatwTiYIj8/Hk9e0K3sUOZSnrtjgEoyAfh4T+l0DcpgptaJlooKwNE Xj5Kv31O/QYn6l1eFI/uo9tQ1O0CBXLJmyoTJQgvypkEmJdmE9PE61E9s2Oh5Uz8EpAy jWcHr2dNWV14x5lbeQc6xLED0D2yLLWa6Du5FwZ2yzsEKfWsZqj5LCh1vghcOcJ0B6af 8Id+RAvqPaWlzCBB4/ZxVtZhJZN/OzOfwNmFJbviK0Zr8INtxo6b+46C6bfspCL64g4u g1N6Sb/uGts0elTv8iK0Ovgen09aP/Yf7Sx2dS7smVZl8O2QEWJVvkK93Wiv4DLLeai6 kWqg== 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; bh=7cRqeGa28DmhxlRLmVlo/oineQQy/rjooOs9giLv8WM=; b=B9u6GuFzrRhZdXiT1nJri7mem5wJ7aLsecbi1H4vtjRZGpXIG/kNkTHjWZbOU2kPq2 xEJnQzx1r0xDDsSXEsf/610EDFsKsBVQwuFYzkZNPqNtN+IRMqXFbrJuSZ3HG75UPzmK BVJ2WkZr09ZMIMkI5hY7p3wd1LBggB8zpCtDSuWwswZGlXsscVLmOna9hMGnoEtdSgpm 0kP12HpyPTcyELJXXg8nG+0AGuChigAlO/BMFrTD48O/dPucINYv1mphXaCmCT/iYvdq Syl7IpYHZoJLWAJiCDmX9U4bdB1OFj01fqbjhF5PaODDby2F1rHhF1XruL5zOFE4DIkQ zhXA== 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 q2si11733638otn.220.2020.01.15.13.24.04; Wed, 15 Jan 2020 13:24:16 -0800 (PST) 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 S1729764AbgAOVKT (ORCPT + 99 others); Wed, 15 Jan 2020 16:10:19 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:57708 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729126AbgAOVKT (ORCPT ); Wed, 15 Jan 2020 16:10:19 -0500 Received: from fsav103.sakura.ne.jp (fsav103.sakura.ne.jp [27.133.134.230]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 00FLA4QN086498; Thu, 16 Jan 2020 06:10:04 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav103.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav103.sakura.ne.jp); Thu, 16 Jan 2020 06:10:04 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav103.sakura.ne.jp) Received: from [192.168.1.9] (softbank126040062084.bbtec.net [126.40.62.84]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 00FL9xV5086456 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Jan 2020 06:10:03 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [patch] mm, oom: dump stack of victim when reaping failed To: David Rientjes Cc: Michal Hocko , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20200115084336.GW19428@dhcp22.suse.cz> <9a7cbbf0-4283-f932-e422-84b4fb42a055@I-love.SAKURA.ne.jp> From: Tetsuo Handa Message-ID: <84fddb8e-a23b-e970-c8e9-74aa2fe2716d@i-love.sakura.ne.jp> Date: Thu, 16 Jan 2020 06:09:57 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.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 2020/01/16 5:27, David Rientjes wrote: > I'm > currently tracking a stall in oom reaping where the victim doesn't always > have a lock held so we don't know where it's at in the kernel; I'm hoping > that a stack for the thread group leader will at least shed some light on > it. > This change was already proposed at https://lore.kernel.org/linux-mm/20180320122818.GL23100@dhcp22.suse.cz/ . And according to that proposal, it is likely i_mmap_lock_write() in dup_mmap() in copy_process(). We tried to make that lock killable but we gave it up because nobody knows whether it is safe to do make it killable.