From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f199.google.com (mail-yw0-f199.google.com [209.85.161.199]) by kanga.kvack.org (Postfix) with ESMTP id 257956B025E for ; Mon, 7 Nov 2016 23:23:52 -0500 (EST) Received: by mail-yw0-f199.google.com with SMTP id s68so402571548ywg.7 for ; Mon, 07 Nov 2016 20:23:52 -0800 (PST) Received: from mail-yw0-x235.google.com (mail-yw0-x235.google.com. [2607:f8b0:4002:c05::235]) by mx.google.com with ESMTPS id u1si3994896ybf.159.2016.11.07.20.23.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 20:23:51 -0800 (PST) Received: by mail-yw0-x235.google.com with SMTP id t125so163552658ywc.1 for ; Mon, 07 Nov 2016 20:23:51 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20161107144931.edcf151a04f1af6d230b8a8a@linux-foundation.org> References: <1478553075-120242-1-git-send-email-thgarnie@google.com> <20161107141919.fe50cef419918c7a4660f3c2@linux-foundation.org> <20161107144931.edcf151a04f1af6d230b8a8a@linux-foundation.org> From: Thomas Garnier Date: Mon, 7 Nov 2016 20:23:50 -0800 Message-ID: Subject: Re: [PATCH v3 1/2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Linux-MM , LKML , Greg Thelen , Vladimir Davydov , Michal Hocko On Mon, Nov 7, 2016 at 2:49 PM, Andrew Morton wrote: > On Mon, 7 Nov 2016 14:32:56 -0800 Thomas Garnier wrote: > >> On Mon, Nov 7, 2016 at 2:19 PM, Andrew Morton wrote: >> > On Mon, 7 Nov 2016 13:11:14 -0800 Thomas Garnier wrote: >> > >> >> From: Greg Thelen >> >> >> >> While testing OBJFREELIST_SLAB integration with pagealloc, we found a >> >> bug where kmem_cache(sys) would be created with both CFLGS_OFF_SLAB & >> >> CFLGS_OBJFREELIST_SLAB. >> >> >> >> The original kmem_cache is created early making OFF_SLAB not possible. >> >> When kmem_cache(sys) is created, OFF_SLAB is possible and if pagealloc >> >> is enabled it will try to enable it first under certain conditions. >> >> Given kmem_cache(sys) reuses the original flag, you can have both flags >> >> at the same time resulting in allocation failures and odd behaviors. >> > >> > Can we please have a better description of the problems which this bug >> > causes? Without this info it's unclear to me which kernel version(s) >> > need the fix. >> > >> > Given that the bug is 6 months old I'm assuming "not very urgent". >> > >> >> I will add more details and send another round. > > Please simply send the additional changelog text in this thread - > processing an entire v4 patch just for a changelog fiddle is rather > heavyweight. > Got it, here is the diff of the previous commit message: 9,10c9 < CFLGS_OBJFREELIST_SLAB. When it happened, critical allocations needed < for loading drivers or creating new caches will fail. --- > CFLGS_OBJFREELIST_SLAB. 16c15 < at the same time. --- > at the same time resulting in allocation failures and odd behaviors. 21,23d19 < The bug exists since 4.6-rc1 and affects testing debug pagealloc < configurations. < 26d21 < Signed-off-by: Thomas Garnier -- Thomas -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org