Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754277AbcCIWss (ORCPT ); Wed, 9 Mar 2016 17:48:48 -0500 Received: from gum.cmpxchg.org ([85.214.110.215]:45554 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752167AbcCIWsk (ORCPT ); Wed, 9 Mar 2016 17:48:40 -0500 Date: Wed, 9 Mar 2016 17:48:29 -0500 From: Johannes Weiner To: Tetsuo Handa Cc: akpm@linux-foundation.org, mhocko@kernel.org, linux-mm@kvack.org, rientjes@google.com, linux-kernel@vger.kernel.org, mhocko@suse.com Subject: Re: [PATCH 2/2] oom-clear-tif_memdie-after-oom_reaper-managed-to-unmap-the-address-space-fix Message-ID: <20160309224829.GA5716@cmpxchg.org> References: <1457442737-8915-1-git-send-email-mhocko@kernel.org> <1457442737-8915-3-git-send-email-mhocko@kernel.org> <20160309132142.80d0afbf0ae398df8e2adba8@linux-foundation.org> <201603100721.CDC86433.OMFOVOHSJFLFQt@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201603100721.CDC86433.OMFOVOHSJFLFQt@I-love.SAKURA.ne.jp> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 767 Lines: 16 On Thu, Mar 10, 2016 at 07:21:58AM +0900, Tetsuo Handa wrote: > Andrew Morton wrote: > > I found the below patch lying around but I didn't queue it properly. > > Is it legit? > > I think that patch wants patch description updated. > Not testing pure noise, but causing possible livelock. > http://lkml.kernel.org/r/20160217143917.GP29196@dhcp22.suse.cz Sorry, I completely missed that. We're drowning in OOM killer fixes! However, I disagree with your changelog. The scenario you describe is real, but that the hung task is exiting is also noise. The underlying problem is that the OOM victim is hung. Instead of OOM_SCAN_ABORT, the OOM killer could also select some other non-exiting task that has the mmap_sem held for reading. This patch doesn't fix that bug.