Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751629AbdGRO5r (ORCPT ); Tue, 18 Jul 2017 10:57:47 -0400 Received: from resqmta-ch2-11v.sys.comcast.net ([69.252.207.43]:50756 "EHLO resqmta-ch2-11v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751574AbdGRO5q (ORCPT ); Tue, 18 Jul 2017 10:57:46 -0400 Date: Tue, 18 Jul 2017 09:57:44 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Alexander Popov cc: Matthew Wilcox , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, keescook@chromium.org Subject: Re: [PATCH 1/1] mm/slub.c: add a naive detection of double free or corruption In-Reply-To: Message-ID: References: <1500309907-9357-1-git-send-email-alex.popov@linux.com> <20170717175459.GC14983@bombadil.infradead.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfKFf5dgK0Qgb1QDc9cLRVSNZmXua/Q0ZFWqivRdsk4mzFkzs5V95RW7Rhtoe4XU4mYjUOGWJX3QcQFC4SWPP8AG5KOb5wfxNHrU9lpjLTVYMXrjGbE01 k14o7Wfq6qzoH0qS9a8yW8f3OZkz+1zfsmowLsBHqt9UBleAJUsqWKGn7Vfs80mlS6cFKT19A+TBgUbgT/RcVHKJPp3M+lUaiIfOformiMdRayrIgLNTpqVK 5WDQIFyAnQxuVtEmoZdGCksYJwMzIgCs+9G2LKlqeXSHNVfcBg5f6/p8E+srtS2bm9pdD8o/6HFYnEcLsZSeBEG/gVMhAEeEZAAZ6ycdldbKOLMawRCOHuQy bY6qwUg9NhCSk51UaY89MTJyA4TrAtISNCFsI3/fCcRhoctIgOLR815UBXftO/UjstTcWpyhv4+FoXHzKdVWw7k2aaOp7EbtBv66qddlzzlHH+wwwZFJikjF IHdiB+64fpsV5oxf Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 217 Lines: 6 On Mon, 17 Jul 2017, Alexander Popov wrote: > Christopher, if I change BUG_ON() to VM_BUG_ON(), it will be disabled by default > again, right? It will be enabled if the distro ships with VM debugging on by default.