Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1100193ybi; Fri, 21 Jun 2019 13:52:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBjDEK3tNVVGyCSkJ1OyDqv/5qwMzPbYrefZYGU0whQj+CvGFKj0/G7X7QJnvyZ2EqArjP X-Received: by 2002:a17:902:296a:: with SMTP id g97mr59813429plb.115.1561150377802; Fri, 21 Jun 2019 13:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561150377; cv=none; d=google.com; s=arc-20160816; b=wKwhGCvBbDvor0y52f2oDyF2Hv8fOn7ArbkmRFK9q5Zy25Pgvf8QtrgoJPLxMFkovU fNCyckG4YuOOi4p+1+shYKwDD9fFtQrd4yHKGOKVFW+xVtQEMbO7ERHcGqtYPaaBaAKc nJy0HsCnkWG7cqLIqsxi+z2WK1BodjAEFBcwoB56Z+obAou+0V9rG2YaPiwcpabKe395 vyIr3pH2Ts+vfe5qROgKPQgLHgy9Lzh0xTiHb+zHrdcsmABuo0jTTDmQUCfT511K3WJX igiiSUJxuZTvaCGAPQ7qFQ0xESWf5lD3SFACasNiWF9IhejHefew+TJQpti1OGxXg7qh Dfrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=xsZwkR1O4dGnGMsIIG/ufAmeJ6Z+ZenaQocCY4Tza70=; b=cQQQmNhZm9pOkswKFssy6ndu9rI5/EqymPeeWu0MhyLEHFaFdG32Vde26g9m6urIGh vzPC+/SkHQcKOColr03kclDcwBr681Eh6OJp8Xn6m49edmi0dUft4TVxVBD5g7y42G06 MNBaS8WSX0IVaBLKZiExkWpVtUlk8ewuXiYV+h/K5Y3iknXcZtAvJCPBLtE/Ba7Cce0W fYJ2BEMqdlgzEDuCXFwgCpTZg2yS6zcvexs93KR9rBVMzAvLO0RD3Qp7InrpsDtM+Hgr Hi9bY8px1MNm1S8raOL/js4uzhrgttFL2qfJqX9dzqL5MxI2BrFrC6PXO53hzDhOKQZP 12IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rv+E/7b7"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si3659331plc.269.2019.06.21.13.52.40; Fri, 21 Jun 2019 13:52:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rv+E/7b7"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726080AbfFUUw3 (ORCPT + 99 others); Fri, 21 Jun 2019 16:52:29 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34539 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbfFUUw2 (ORCPT ); Fri, 21 Jun 2019 16:52:28 -0400 Received: by mail-pl1-f194.google.com with SMTP id i2so3559420plt.1 for ; Fri, 21 Jun 2019 13:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=xsZwkR1O4dGnGMsIIG/ufAmeJ6Z+ZenaQocCY4Tza70=; b=rv+E/7b7JY6cpCuEo3QEn8sbHqI1ZR79p1uD+ayLvYUjdZXy45cMBXnpOBANzRD/h9 AKwFkx5YKkPwDV+z+alIPV1uhD4Us31/0w7Onebbflsxun6qItXz81HGcxTZ7S45mQkF mdeJXXlNrRYxGieY6CO5sW7OvYILoQQwQhzFqNXgIR9sUhMfzb7yJehRXESr28JDm6lq IJUwCKmkCEQEHh2qvgZDsesKij6FJXeF66csul2evLnnuuXC21nlojygQcdLk+8jHF2L PqLK6XveRhNJzO6G5iTrQWirXDKQbFegQGPu2Np+nWTUBVb8ggftrLbBsHWiZy5kTdaQ g5dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=xsZwkR1O4dGnGMsIIG/ufAmeJ6Z+ZenaQocCY4Tza70=; b=cm3pmXtkon+1qkeEM0xK4BoRL1r94qn1IVOg92Ld/47UXxnGXiDJ0jCk3oXGFoit9f y3ZNPRcOUqMJQVVqiqYh4RUaszfjnOZAEjfCNVbRPGdSTkRCz9QjkS/8qsacKlGZaKae m/1eT+pydQZkpQCklY0gUWW/Bs/7giNHd+xyoeV+hYgznTpu2z2pdeqnwiCWb5OOV9eA qe4dPAgfAkkqNSmKMC3SJrPPnKiGO2Wb61qClDK1pdqkrD2N3m4UC9ThCUtMDUg433vs HH6exjRIjx7zrZnZ92gS14CnZ9/RBpB2zx4vY0EES8Jk939IfBfAsqGUOFkbNgLYaDko 8d6w== X-Gm-Message-State: APjAAAVzcDWGRSP8rRX3ZGs9Dz81HrArEXGOehGRNew1ApiGtIfp513K sWJQZIoEsbYlhLJNH3bD5/s0Nw== X-Received: by 2002:a17:902:f089:: with SMTP id go9mr64259063plb.81.1561150347844; Fri, 21 Jun 2019 13:52:27 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id f17sm3582163pgv.16.2019.06.21.13.52.27 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 21 Jun 2019 13:52:27 -0700 (PDT) Date: Fri, 21 Jun 2019 13:52:26 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Shakeel Butt cc: Johannes Weiner , Christoph Lameter , Michal Hocko , Andrew Morton , Roman Gushchin , Pekka Enberg , Joonsoo Kim , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dave Hansen Subject: Re: [PATCH] slub: Don't panic for memcg kmem cache creation failure In-Reply-To: <20190619232514.58994-1-shakeelb@google.com> Message-ID: References: <20190619232514.58994-1-shakeelb@google.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Jun 2019, Shakeel Butt wrote: > Currently for CONFIG_SLUB, if a memcg kmem cache creation is failed and > the corresponding root kmem cache has SLAB_PANIC flag, the kernel will > be crashed. This is unnecessary as the kernel can handle the creation > failures of memcg kmem caches. Additionally CONFIG_SLAB does not > implement this behavior. So, to keep the behavior consistent between > SLAB and SLUB, removing the panic for memcg kmem cache creation > failures. The root kmem cache creation failure for SLAB_PANIC correctly > panics for both SLAB and SLUB. > > Reported-by: Dave Hansen > Signed-off-by: Shakeel Butt Acked-by: David Rientjes