Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4197159imu; Mon, 28 Jan 2019 19:47:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN7tHMsfzsk/1Y8fu4swPUAXSDT2VaEU0rbzxTa8brNJmZVeXe8OzCId0Qdpy7bEmwCK0Ll6 X-Received: by 2002:a17:902:8b88:: with SMTP id ay8mr24800562plb.55.1548733644928; Mon, 28 Jan 2019 19:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548733644; cv=none; d=google.com; s=arc-20160816; b=QcaWUJt51JfOEb0okCLLsyTD+UwZLXgqeMLRS3YjrrzhTPedE2sXPa8p2viTRPKkzf vm0xA0ngq8v/BBq/Hnw1yfdFDtOCXPDiJ3NDprvXTYu0VDyOWH7l97E8Ay00Cq+xHXaR t1ve2vN2qNpO+7vTKuiMl+wbU8UEsMWkmCJYvOcvpUMLb2FCx0h4KSkqA+LsmLjs3Ytq 9E0K5bLlJac10IOkmjOSsqrSWpdHvNgfiaa5pIH4H3GJPIg8GEe9zj4+1jfn3y9FKg6z +dw2P3QvD//xt2bLFrhbd2CoIxv+MPQ9AU11HwmRmq8iQ9kd8M33a4mGNN/1e1wM3aKE biUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=uIOdpABK+KWz0Ov8vP0byx8Zltq05uoyA1KXJEKJv/w=; b=gx9rIZdZqT0ZoVPDuz9T3GfcpgXRXbeZp8PzdtMcMmoRfB1fgZX+dhfauLrw9Jcx6K IisT3dTHWbTMk6iL8xVPUBEfbAIVELSR/ynRuFnwBuE0jGq5o2N0nHs6z+LLqRHg4ueU ax/Gr6LcytSA0nzyWfe3tXsSPtdlcF/4cO/4D7bJvgzlpiJj5KL5l/cDmwV+IIyaHc81 z4hE8U8MUH58uvca8/goiG1CfHeBoA1FDYL87Py/M5yCrWcMk2QWAz0K+/b79wUdkOYK rNyrGgofE3W0DMb3/zGyyfodxunfvATBvv+XkJDw4YJt6e8JuYd/CcWRU6ybcnMIQWIG ez7A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14si19393759plq.145.2019.01.28.19.47.08; Mon, 28 Jan 2019 19:47:24 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727301AbfA2DqE (ORCPT + 99 others); Mon, 28 Jan 2019 22:46:04 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:40034 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726843AbfA2DqE (ORCPT ); Mon, 28 Jan 2019 22:46:04 -0500 X-UUID: a032271e0a8644039eaab1da89e4fc61-20190129 X-UUID: a032271e0a8644039eaab1da89e4fc61-20190129 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1622491935; Tue, 29 Jan 2019 11:45:58 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 29 Jan 2019 11:45:57 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 29 Jan 2019 11:45:57 +0800 Message-ID: <1548733557.9796.13.camel@mtkswgap22> Subject: Re: [PATCH v2] mm/slub: introduce SLAB_WARN_ON_ERROR From: Miles Chen To: David Rientjes CC: Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Jonathan Corbet , , , Date: Tue, 29 Jan 2019 11:45:57 +0800 In-Reply-To: References: <1548313223-17114-1-git-send-email-miles.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-01-28 at 17:41 -0800, David Rientjes wrote: > On Thu, 24 Jan 2019, miles.chen@mediatek.com wrote: > > > From: Miles Chen > > > > When debugging slab errors in slub.c, sometimes we have to trigger > > a panic in order to get the coredump file. Add a debug option > > SLAB_WARN_ON_ERROR to toggle WARN_ON() when the option is set. > > > > Wouldn't it be better to enable/disable this for all slab caches instead > of individual caches at runtime? I'm not sure excluding some caches > because you know they'll WARN and trigger panic_on_warn unnecessarily is > valid since it could be enabled for that cache as well through this > interface. We can enable this option only for specific slab(s). e.g., slub_debug=W,dentry or enable this option for all slabs e.g., slub_debug=W