Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935260AbcLPOEu (ORCPT ); Fri, 16 Dec 2016 09:04:50 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:39579 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932517AbcLPOEp (ORCPT ); Fri, 16 Dec 2016 09:04:45 -0500 Subject: Re: crash during oom reaper To: Michal Hocko References: <20161216082202.21044-1-vegard.nossum@oracle.com> <20161216082202.21044-4-vegard.nossum@oracle.com> <20161216090157.GA13940@dhcp22.suse.cz> <20161216101113.GE13940@dhcp22.suse.cz> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Rik van Riel , Matthew Wilcox , Peter Zijlstra , Andrew Morton , Al Viro , Ingo Molnar , Linus Torvalds From: Vegard Nossum Message-ID: <353d5304-d178-a6eb-05ab-e5a8c1ff8326@oracle.com> Date: Fri, 16 Dec 2016 15:04:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1448 Lines: 42 On 12/16/2016 02:14 PM, Vegard Nossum wrote: > On 12/16/2016 11:11 AM, Michal Hocko wrote: >> On Fri 16-12-16 10:43:52, Vegard Nossum wrote: >> [...] >>> I don't think it's a bug in the OOM reaper itself, but either of the >>> following two patches will fix the problem (without my understand how or >>> why): >>> >> What is the atual crash? > > Annoyingly it doesn't seem to reproduce with the very latest > linus/master, so maybe it's been fixed recently after all and I missed it. > > I've started a bisect to see what fixed it. Just in case, I added 4 > different crashes I saw with various kernels. I think there may have > been a few others too (I remember seeing one in a page fault path), but > these were the most frequent ones. The bisect points to: commit 6b94780e45c17b83e3e75f8aaca5a328db583c74 Author: Vincent Guittot Date: Thu Dec 8 17:56:54 2016 +0100 sched/core: Use load_avg for selecting idlest group as fixing the crash, which seems odd to me. The only bit that sticks out from the changelog to me: """ For use case like hackbench, this enable the scheduler to select different CPUs during the fork sequence and to spread tasks across the system. """ Reverting it from linus/master doesn't reintroduce the crash, but the commit just before (6b94780e4^) does crash, so I'm not sure what's going on. Maybe the crash is just really sensitive to scheduling decisions or something. Vegard