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 2537EC3A5A2 for ; Tue, 3 Sep 2019 19:36:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E6837217D7 for ; Tue, 3 Sep 2019 19:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567539366; bh=YVVO6qe5ObN5K/LY132yyXuUzXgD+rsnZ7zo6AhX+0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=GT9PBZ7ZzjgBgCJ44xVrSgCCdtAP7+HUv8mfdCeBVb7oPMIQdIqMq6f+Nwi0BYCGk 5c98/+5YRvyP6BgR6m5OvupHu6uNBys9DEty+5unpLLXcrMqkjA4dXliM/6E4UW6jg yS2wUaVBQ+JS4SQ+swUWaKlln9q6zN2flOxbKpbE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725939AbfICTgF (ORCPT ); Tue, 3 Sep 2019 15:36:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:58512 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725882AbfICTgF (ORCPT ); Tue, 3 Sep 2019 15:36:05 -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 473FCADDA; Tue, 3 Sep 2019 19:36:04 +0000 (UTC) Date: Tue, 3 Sep 2019 21:36:03 +0200 From: Michal Hocko To: Thomas Lindroth Cc: Andrey Ryabinin , linux-mm@kvack.org, stable@vger.kernel.org Subject: Re: [BUG] Early OOM and kernel NULL pointer dereference in 4.19.69 Message-ID: <20190903193603.GF14028@dhcp22.suse.cz> References: <31131c2d-a936-8bbf-e58d-a3baaa457340@gmail.com> <20190902071617.GC14028@dhcp22.suse.cz> <20190903074132.GM14028@dhcp22.suse.cz> <84c47d16-ff5a-9af0-efd4-5ef78d302170@virtuozzo.com> <20190903122221.GV14028@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue 03-09-19 20:20:20, Thomas Lindroth wrote: [...] > If kmem accounting is both broken, unfixable and cause kernel crashes when > used why not remove it? Or perhaps disable it per default like > cgroup.memory=nokmem or at least print a warning to dmesg if the user tries > to user it in a way that cause crashes? Well, cgroup v1 interfaces and implementation is mostly frozen and users are advised to use v2 interface that doesn't suffer from this problem because there is no separate kmem limit and both user and kernel charges are tight to the same counter. We can be more explicit about shortcomings in the documentation but in general v1 is deprecated. -- Michal Hocko SUSE Labs