Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbbBMXws (ORCPT ); Fri, 13 Feb 2015 18:52:48 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:33181 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbbBMXwq (ORCPT ); Fri, 13 Feb 2015 18:52:46 -0500 Message-ID: <54DE8E47.5040800@canonical.com> Date: Fri, 13 Feb 2015 17:52:39 -0600 From: Chris J Arges User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: David Rientjes CC: linux-kernel@vger.kernel.org, Jonathan Corbet , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , linux-doc@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 3/3] mm: slub: Add SLAB_DEBUG_CRASH option References: <1423865980-10417-1-git-send-email-chris.j.arges@canonical.com> <1423865980-10417-3-git-send-email-chris.j.arges@canonical.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 789 Lines: 25 On 02/13/2015 05:38 PM, David Rientjes wrote: > On Fri, 13 Feb 2015, Chris J Arges wrote: > >> This option crashes the kernel whenever corruption is initially detected. This >> is useful when trying to use crash dump analysis to determine where memory was >> corrupted. >> >> To enable this option use slub_debug=C. >> > > Why isn't this done in other debugging functions such as > free_debug_processing()? > The diff doesn't show this clearly, but the BUG_ON was added to both free_debug_processing and alloc_debug_processing. --chris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/