Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1280549ybj; Thu, 7 May 2020 20:09:15 -0700 (PDT) X-Google-Smtp-Source: APiQypLRUKqj+ftX7OZWpB6npqCF9OwQj/+JjV+rbeWdyvuNPy1dpKUT6Rb52ojuAp6EPVjugd/s X-Received: by 2002:a17:906:459:: with SMTP id e25mr131776eja.379.1588907355742; Thu, 07 May 2020 20:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588907355; cv=none; d=google.com; s=arc-20160816; b=eQLPXXbOPvvUobl3hLMex/G/zpMrJj/n4js+ZVRfZuBxFvGDXPXFfiuH1E9YzBGNxc 2IeGfNhsmGYkBhPJfylnUpSumg5O7tjXZQEUEO6egQwclpa2hesHoAgm6PSmghtvnarv A9Ff6Pvbe311Fn0m0jfHn8KrUUAyky62y0BFxV4jLFIjjCGEURxvnqFm5BGMfRziKz4q XPfl4Z+hb59CnPyyS55SD/M78rCUI5BRe4ZFmc/iJvYJf39CnKJTLd8knoOsJ3hCe7HI 2otLuW3njIN/xpE+CGTMc8CjevPtvMgXJhbb7KcjzQ4zzkjRS75eKPLHkX+0CyEgMFFO Uq8w== 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; bh=WARW+zoTemn+jDl6YCPZRPanaPtFv2FMuTpTEFE5p/Q=; b=es3LACzp3B21P+bUkttlYsWeK5zR5rf55raPm9mzhZvmjyFxUG9JgX/hrOfbizSuRo pfTc4lYNzyTEXFcbwzxpJb4USI/dk8Q+O7HwWF8IK8QDUZs78t0XSwf4r/xuVAgUKbeZ JNdE32xF08ltCFM9u4JChwL91Ufv91ZkLMwfASX1o9mrTaXelUNQAEevG057I7xaXvoL XiWAhZ/Zlemyoe3rrNHsgJM54EtoaIcMWwlY5RNtUMkyac9+NF2szzS0chBGw552GQCh AZW/seSlLBbIE6R8+twlys/w+R3VFm61s3f9+qVHtr59fC8U4qEWyaRTAjDlo86ntF2b zilg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oy7si199730ejb.169.2020.05.07.20.08.50; Thu, 07 May 2020 20:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbgEHDG5 (ORCPT + 99 others); Thu, 7 May 2020 23:06:57 -0400 Received: from gentwo.org ([3.19.106.255]:33624 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbgEHDG5 (ORCPT ); Thu, 7 May 2020 23:06:57 -0400 Received: by gentwo.org (Postfix, from userid 1002) id 3E98C3FEDA; Fri, 8 May 2020 03:06:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 3CA8A3FED9; Fri, 8 May 2020 03:06:56 +0000 (UTC) Date: Fri, 8 May 2020 03:06:56 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Rafael Aquini cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, iamjoonsoo.kim@lge.com, rientjes@google.com, penberg@kernel.org Subject: Re: [PATCH] mm: slub: add panic_on_error to the debug facilities In-Reply-To: <20200504025138.GB18463@t490s> Message-ID: References: <20200501211540.71216-1-aquini@redhat.com> <20200504025138.GB18463@t490s> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) 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 Sun, 3 May 2020, Rafael Aquini wrote: > On Sat, May 02, 2020 at 11:16:30PM +0000, Christopher Lameter wrote: > > On Fri, 1 May 2020, Rafael Aquini wrote: > > > > > Sometimes it is desirable to override SLUB's debug facilities > > > default behavior upon stumbling on a cache or object error > > > and just stop the execution in order to grab a coredump, at > > > the error-spotting time, instead of trying to fix the issue > > > and report in an attempt to keep the system rolling. > > > > The stopping of execution on an error is the default behavior. Usually > > you get some OOPS somewhere when data is corrupted and that causes a core > > dump. > > > > SLUB can fix the issue and continue if enabled by specifying special > > options on boot. That is *not* the default. > > > It is the default behavior when slub_debug is turned on, which is what > this patch is trying to override, when needed. We've been seeing the > need for such feature as, most often than not, by letting the system > running to crash somewhere else after hitting occurrences reported by > slub_debug ends up clobbering clues to the original issue. Ok. The backtrace is not sufficient in that case?