Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1096390ybz; Fri, 1 May 2020 14:31:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKDK6CWnA/Wh6Z4LULAx8VyDz9Z2STg+N9vSXbOLyYE8zO2fRNG19Q9NJ69cI48E8SbC2E0 X-Received: by 2002:a17:906:138c:: with SMTP id f12mr5218094ejc.35.1588368669014; Fri, 01 May 2020 14:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588368669; cv=none; d=google.com; s=arc-20160816; b=K1EOk6zfJu/Fm8Az9j7J7SdNIdC8SyT4dh8I3CspOKjQXmvcRXRMfPO+A5PeqIm1CZ qGqhBhQkbFQnIw5O8bwZVN5N76mFITehTS12frP0ouWZ8MDJnRpe+NawX1AtUsm1uUvh iGNiAIs1KrMfLCOnFjDBRHgRPxB3kYtDoUX5S8VKg484Ef8DqOcGt5kQDcZlwiv90s67 KkHh2Rq69CN3daiXKbOFwY6fC86gn9RxC0FAy9k1WeF8ihjEWgdaiib5QdX6u3lvf1Qk IWNxLrjI8Sk61iJ9N7SFkf6NQIqc6VzMIogE+kDO6cUi+mYvTXwJAGSeh2SizgZ5NXEH OLJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=WJSxCtUrQ4kbv8PP6ebxsDg8QOID1HZc/ULg/GKvJlA=; b=HcuYSXd/+aC/H7Nm7XMUhwh3GpOQOOsiiMRdKiCibdodo/Pam7epnlPowuaUP50cWa WemqJrX3IFPCSKP8vP+Y+XX8jMLegONRviykVU/u5aPLPqnAEN2p09KewrLG+6IkadEh a5wHJNuVEOjNuKsYReLQsJzHgy6yCNC0Z68ITAUL2e22JJp8cd2p4zdZjTnWl4O1cPm6 fvExM2edgiSc881UTNQsc3PvjRcLmOTblQxkfsIFwuHBqLFK7TMVzCcgppU/4GPpNdf7 nPG4S2EV199lR1NpROfxbEG4C8RjFRDvueMwmP13pYLr62ZwYFoiUYiV/hKqNhalXRWk IK7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=D8WrYKrr; 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 h21si2710768edj.79.2020.05.01.14.30.45; Fri, 01 May 2020 14:31:09 -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=@lca.pw header.s=google header.b=D8WrYKrr; 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 S1726473AbgEAV3W (ORCPT + 99 others); Fri, 1 May 2020 17:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgEAV3W (ORCPT ); Fri, 1 May 2020 17:29:22 -0400 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9691C061A0C for ; Fri, 1 May 2020 14:29:21 -0700 (PDT) Received: by mail-qv1-xf42.google.com with SMTP id h6so5393911qvz.8 for ; Fri, 01 May 2020 14:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=WJSxCtUrQ4kbv8PP6ebxsDg8QOID1HZc/ULg/GKvJlA=; b=D8WrYKrrFN3udsD0VgK1xx4C9GIV4kL38qjZF50x4kbItrsynRr8+ZrIXxtMSK3Urn yBnFHKDZxe6JUAPzCMqktSXvf3IrDQNU8F9kwmtpg7bf1xxsgSIUOyAskggSfpPK3b8z GqI7k3Nl5cgI8MChemP/HfDxgTa7rbf4GSclSMnRR5l00LHo3vTZbYgDb+0SmO9dblA7 47R4nkXfwxO1yKsSrOhWr9RVewkel6yVSJguRlzWShCI8FNxG6iIW7WmOgWChiyZsl5L Gh6KqpGH5lfs+t1T2KXrtRCWQXypG2aqu9hjnVeEmWLrs7iXwvFA1gXl9u4IjtFFi+V8 p/wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=WJSxCtUrQ4kbv8PP6ebxsDg8QOID1HZc/ULg/GKvJlA=; b=dzJYzFMBLt3YFKP3ZEYtJt/TuTZOGMDfZb8vYHP4Jw5q8MwTMP0NR577U6EtGEfF+V Dm9Pp+bnTVZo5Ppa/C9Kz+KE2NMGsxSjA0ELo/3fsI74jdlMid1z8I5nYYcildCrpSpI OoeYAMs3bkCYo9awxPKNzpOeHfv3/9k/yKYCO7DLe/3QEucxwJcTBOpmwvtmRoFKfbvd JiMs0ipJCFGmBs4SMPuL0nWlAotLIUfu2CK6atOmJ05sx470ZilEeIkzibUTzZZcOabA VzYySTMkdt2eITWeb8uGpw5ME08DUVAxWeLBW8fNrKjfXIW5uqI2DsaWA3TqyQZaz0yv uYQg== X-Gm-Message-State: AGi0PuYpVOlZMwaD/8qX0YsJkJ60Qdj3dzsEPSlCIkg965v8soN0dwRZ Jv/+xO4II0h5qTnjFF2unTRl8A== X-Received: by 2002:a0c:f90c:: with SMTP id v12mr5927106qvn.21.1588368561078; Fri, 01 May 2020 14:29:21 -0700 (PDT) Received: from [192.168.1.153] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id y6sm3493568qky.133.2020.05.01.14.29.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 May 2020 14:29:20 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] mm: slub: add panic_on_error to the debug facilities From: Qian Cai In-Reply-To: <20200501211540.71216-1-aquini@redhat.com> Date: Fri, 1 May 2020 17:29:19 -0400 Cc: Linux-MM , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, iamjoonsoo.kim@lge.com, rientjes@google.com, penberg@kernel.org, cl@linux.com Content-Transfer-Encoding: quoted-printable Message-Id: <21CF143C-B9D1-4D3F-A875-370924265593@lca.pw> References: <20200501211540.71216-1-aquini@redhat.com> To: Rafael Aquini X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On May 1, 2020, at 5:15 PM, Rafael Aquini wrote: >=20 > 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. >=20 > This patch introduces a new debug flag SLAB_PANIC_ON_ERROR, > along with its related SLUB-machinery, in order to extend > current slub_debug facilites and provide the aforementioned > behavior override. Instead of adding those things everywhere. How about adding something = like panic_on_taint? Then, you could write specific taint flags you are = interested in to that file because slab_bug() will taint it = TAINT_BAD_PAGE.=