From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E603C3A59B for ; Mon, 2 Sep 2019 07:16:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C14B214AE for ; Mon, 2 Sep 2019 07:16:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567408580; bh=nYHr8i6TTjHNKMz43vCRDjX0Xar2yjrbIBil3gAw4qY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=B6nSAySS4xU/Xwd78zWFTn9kaRsS7vpky0Feb9PVM19VCRAmqsKvnJE88FkUyTTtV 8k7aCl5wJzeQow3HkaurR9KnUdAgqMcAq+cm3XtzTmzN+Bq68kwecNWDVrbd2hCn7D L6NDXHtZmCkdxP/14QBMku4RAVP5nCSBSDedkAYU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729330AbfIBHQT (ORCPT ); Mon, 2 Sep 2019 03:16:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:58778 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726099AbfIBHQT (ORCPT ); Mon, 2 Sep 2019 03:16:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4F8ABAEF6; Mon, 2 Sep 2019 07:16:18 +0000 (UTC) Date: Mon, 2 Sep 2019 09:16:17 +0200 From: Michal Hocko To: Thomas Lindroth Cc: linux-mm@kvack.org, stable@vger.kernel.org Subject: Re: [BUG] Early OOM and kernel NULL pointer dereference in 4.19.69 Message-ID: <20190902071617.GC14028@dhcp22.suse.cz> References: <31131c2d-a936-8bbf-e58d-a3baaa457340@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31131c2d-a936-8bbf-e58d-a3baaa457340@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Sun 01-09-19 22:43:05, Thomas Lindroth wrote: > After upgrading to the 4.19 series I've started getting problems with > early OOM. What is the kenrel you have updated from? Would it be possible to try the current Linus' tree? > I run a Gentoo system and do large compiles like the chromium browser in a > v1 memory cgroup. When I build chromium in the memory cgroup the OOM killer > runs and kills programs outside of the cgroup. This happens even when there > is plenty of free memory both in and outside of the cgroup. [...] > [ 1146.798696] emerge invoked oom-killer: gfp_mask=0x0(), nodemask=(null), order=0, oom_score_adj=0 > [ 1146.798699] emerge cpuset= > [ 1146.798701] / > [ 1146.798703] mems_allowed=0 > [ 1146.798705] CPU: 4 PID: 16719 Comm: emerge Not tainted 4.19.69 #43 > [ 1146.798707] Hardware name: Gigabyte Technology Co., Ltd. Z97X-Gaming G1/Z97X-Gaming G1, BIOS F9 07/31/2015 > [ 1146.798708] Call Trace: > [ 1146.798713] dump_stack+0x46/0x60 > [ 1146.798718] dump_header+0x67/0x28d > [ 1146.798721] oom_kill_process.cold.31+0xb/0x1f3 > [ 1146.798723] out_of_memory+0x129/0x250 > [ 1146.798728] pagefault_out_of_memory+0x64/0x77 > [ 1146.798732] __do_page_fault+0x3c1/0x3d0 > [ 1146.798735] do_page_fault+0x2c/0x123 > [ 1146.798738] ? page_fault+0x8/0x30 > [ 1146.798740] page_fault+0x1e/0x30 This is not a memcg oom killer and the oom killer itself is a reaction to the allocation not making a forward progress. It smells like something in the page fault path has return ENOMEM leading to VM_FAULT_OOM. Seeing unexpected SLUB allocation failures would suggest that something is not really working properly there. -- Michal Hocko SUSE Labs