From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5890AC35280 for ; Fri, 1 May 2020 21:29:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 16F0C208DB for ; Fri, 1 May 2020 21:29:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lca.pw header.i=@lca.pw header.b="D8WrYKrr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16F0C208DB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lca.pw Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AAFF58E0007; Fri, 1 May 2020 17:29:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A5F3A8E0001; Fri, 1 May 2020 17:29:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 975498E0007; Fri, 1 May 2020 17:29:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0142.hostedemail.com [216.40.44.142]) by kanga.kvack.org (Postfix) with ESMTP id 7FD598E0001 for ; Fri, 1 May 2020 17:29:22 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 34F51181AEF00 for ; Fri, 1 May 2020 21:29:22 +0000 (UTC) X-FDA: 76769441364.24.cats29_51c41946f1a53 X-HE-Tag: cats29_51c41946f1a53 X-Filterd-Recvd-Size: 3949 Received: from mail-qv1-f68.google.com (mail-qv1-f68.google.com [209.85.219.68]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Fri, 1 May 2020 21:29:21 +0000 (UTC) Received: by mail-qv1-f68.google.com with SMTP id v10so5408672qvr.2 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=Pk1wfBMlbzxX0UM4URtY1kiQ5G3LFKG+/3/joT0CKTZgMwQX7/hc9bJPMkBhjdwn8x NWvRwb6jW0YWGH2KLxLt5vcWWA3OxEJF/PnSS6oYdoBEC7vfABJr032eu+uNB6FQA57+ Bd1aRNFaB7HtWHeglIWjhzjzzZBdCSBXHSheZMScURIIfqHTVgjj1m3m/l1Xc71V1I7W lMoyg1W+7D3mBz2iQy2E8ou/Mq+OgnIZy9tAR5735j1JFj7o5Dj+oWae2i84z1qSl0T/ XNMjYa8LPh3b2uwS810DSXbG2UU0jrr7iJxhmEoxdQk3+eyywjk//PqUDwNalvLn9NKW /xOA== X-Gm-Message-State: AGi0PuZA2GYiSxlxuIXMRT8GMrhXw4XBIeOjhUZO+rcUrKyYqq7Omw6I 4BBNmpiuhHxyC8On4cYd4aJ5rA== X-Google-Smtp-Source: APiQypKthgZJy1bXq0ePWD+aiR6wfk47apKr7P5G8WpkjIgDoImhnTRPKotO/I9RsAvYTC+h347F1w== 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) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > 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.=