Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3187875ybz; Sun, 3 May 2020 19:55:56 -0700 (PDT) X-Google-Smtp-Source: APiQypLDMAXtKaW6/M1vTEp7qq1Jtqzbfp4iriq/dgbBDh8r39gFu59xi/vLDBSTxrA6VNkPE7iK X-Received: by 2002:a17:906:af94:: with SMTP id mj20mr12744876ejb.347.1588560956593; Sun, 03 May 2020 19:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588560956; cv=none; d=google.com; s=arc-20160816; b=kk6JVnVuOt+2zfMTOLoWRseXBEP1cE/ifB4/Xl+SjvBQX3PRXWwE40DpY73KfsPY3o F/AhKErz8tSBh8nu0OOIAdEq0SUmcdyXorjx+8hMuzDxoRvk6lez28Hik3r9Zjavrl2y DZ1pGLKxer3cqDt+9/dPak618FzKp49h3wBoCKlOIVTla9H9uJIIcPfk12A7M7BIJRRd AZuyyrLlz+uVhLHrOMuzH2VHmVBXaYxF81hWFsCJfD0DMtn1SIdG3nPbI1hHaWJ4vdhV 24rH4VgIH1TxXgpOpC/e83EqyOGp/fSbhtTO87a+wTQ3z+cghbq4QmyV3KrSSJ57/VS1 8PnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3LaCbVlWjbzCuD40XLJY0jfLFr8/yA0ea/zELNcIVD4=; b=ZMsLieKXO7a5SX9qiFw4zkuWv7aWYECjekieU+zL4pOawWI0idgPZrKvLm+BW8dmvz dyLiM5Q2Vpb36BWTqimDbOw0Jc10uUinsgIl2hxGbRMIZCX4JP5CUx1sLaHDACTKL7Fp 1Kvwcir/JIgGEdfYhYczCoR3RGJGp8EVb0bG3R5n5qJNJGUpQxNGbLsLfpQADiyCZQS5 PBOfpsyMF4CTcVb5QkEkUQMfPihBbirUv+w070acOQsrWblgkeyQAXSKPEaKCNwGaFuI 9FZHKCubUwoz7M9Uo/FWYCTxkle19C/USYvaw+Iqbs25WYQ/1pCNRT0amHjsn5vpPJlX DFFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DWG7ZdI9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si7002137edv.435.2020.05.03.19.55.33; Sun, 03 May 2020 19:55:56 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DWG7ZdI9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726477AbgEDCvr (ORCPT + 99 others); Sun, 3 May 2020 22:51:47 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:56545 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726377AbgEDCvr (ORCPT ); Sun, 3 May 2020 22:51:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588560705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3LaCbVlWjbzCuD40XLJY0jfLFr8/yA0ea/zELNcIVD4=; b=DWG7ZdI9Ijl+g/SQovrlveEjbLiXut6kdtiDaGIX7uAK+c/4wow8M0OK8goo8qglRSgZF+ 4bS6ssDcwDjXMLdHrrV4+hxc1fyrs6ozYMUWxVj6J8IOYtmcMUN5UJ463EAhTnhnngfGtZ C/LXlrS9TLcMnqsZl340/mo8sBGAuAU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-291-hfu3dCytO1GZC_r4ZmLjXA-1; Sun, 03 May 2020 22:51:43 -0400 X-MC-Unique: hfu3dCytO1GZC_r4ZmLjXA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D72141895A2A; Mon, 4 May 2020 02:51:41 +0000 (UTC) Received: from t490s (ovpn-112-64.phx2.redhat.com [10.3.112.64]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B74521001B30; Mon, 4 May 2020 02:51:40 +0000 (UTC) Date: Sun, 3 May 2020 22:51:38 -0400 From: Rafael Aquini To: Christopher Lameter 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 Message-ID: <20200504025138.GB18463@t490s> References: <20200501211540.71216-1-aquini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Rafael