Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3787813rwd; Mon, 22 May 2023 21:03:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+dZaQ5JihRLNpCfDm2IDgaQ3x5y3cOULPmn7fRKd4mJ6J9YJB8YgGo850v4EANokKn+Rq X-Received: by 2002:a05:6a00:a0e:b0:63f:2959:a271 with SMTP id p14-20020a056a000a0e00b0063f2959a271mr20074298pfh.6.1684814582608; Mon, 22 May 2023 21:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684814582; cv=none; d=google.com; s=arc-20160816; b=T/rxNQ2t5oNim5VpjW7Wxx30CbwkLWWDNddToGLM9DbLEHc9V/yWo1y9vspchkMNl3 5IrN2xhUuKSql4D0+QejhEzsKcOTAbhvyCJHjyMvPNNLd9zZ/ZHr8ZC1dVCeoeXLc/0C Nx3WJdH3vKgVlXe5G4rn1ZosUqFz856kz/tPWnXNIZDYUsrc6R3qRNuHvWoqb/V1Rbt4 8/cBuBaT4A9Wc0gXIrmCA/efIjDLTPvA8Btg+7cpFe91xI7Tt1YTeZilX5sa5NHPrhOf VauUTtCmW6AOX7aDWcN9oq01IdnJDW0uBDNV+moaV4ZJUpnvF9W+6QfbHsuYr0y0KnvV j+SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MnRcPFIPcgsXKY32Wes3cbPQqcL7hwCbiuzXvG9RsCg=; b=NLkPCUP4cwfpIyiAyRAxqoXC2PB9teA7k330sb94Np05KR+mJQ+L4JzbojFKRFWIzE WOctQ3NWI7qyuuZ/x9vS5SSNbyVDWg/PKUBeBGg0OEjcHLQjQSez4m1FU9JChP1PLhEz 1SOIDFJ9zM+PeRWxAK5gIpV3Fsg+USpIDh1IYl/vZnJeMWxo2oKILR5tycMJviyWVhKb +BOvflhRaAcN+APSBA7cUweM6XlN5zeQ+N63/j8BAV7/8MBn141UkcTH0+de6ztDil2P 79tpzLSfGedKRxV1Y1OINg+YKoJx0A4a880CQ6WXsjD1zevxy3f68KEb9xtu4fMWy4Yu ITNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PAUsKu+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a6566d4000000b0053b8c964128si3533775pgw.708.2023.05.22.21.02.46; Mon, 22 May 2023 21:03:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PAUsKu+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232474AbjEWDoE (ORCPT + 99 others); Mon, 22 May 2023 23:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjEWDoC (ORCPT ); Mon, 22 May 2023 23:44:02 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FBCA90 for ; Mon, 22 May 2023 20:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MnRcPFIPcgsXKY32Wes3cbPQqcL7hwCbiuzXvG9RsCg=; b=PAUsKu+GHlfjskoli9bkEtf9K0 eZaZB4xS3IinYWwq5N1PlN0+xBjBuDNmx0Nu4T3X9Mdax5ZHg5yokNcQb0Ywvw5ZnJ4TVoPKC7Dyj GUPCUahr3btuTUM4s2SC8uEGiDKY5m/VBkvMlVqd0diYWUUeSx4JwxoJuiTySnPAkxdDniYkhsNAD 8ZtXYKc13OfXIU1vFYp2oqYN0N4LqGXFLysJjsLD9+ouo27VvID02U7KeuPKusJoFEzHfzp9CiXfG crUaezazuztMVL1iRigCbmAVKPCAAUYgdulOo36VhI6oy/oc0wJv0kxp9r04uJ8zIsbYS9g/oSB/X PMTnDHEA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q1IwC-009kVr-LA; Tue, 23 May 2023 03:43:52 +0000 Date: Tue, 23 May 2023 04:43:52 +0100 From: Matthew Wilcox To: David Rientjes Cc: David Hildenbrand , Andrew Morton , Michal Hocko , Alex Shi , Johannes Weiner , Alexander Duyck , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds Subject: Re: [patch] mm, debug: allow suppressing panic on CONFIG_DEBUG_VM checks Message-ID: References: <53dd9df8-e88f-f466-89f9-3fa141a10267@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53dd9df8-e88f-f466-89f9-3fa141a10267@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 22, 2023 at 11:39:27AM -0700, David Rientjes wrote: > I think VM_BUG_ON*() and friends are used to crash the kernel for > debugging so that we get a crash dump and because some variants don't > exist for VM_WARN_ON(). There's no VM_WARN_ON_PAGE(), for example, unless > implicitly converted with this patch. It could be added, but there's already a VM_WARN_ON_FOLIO() and VM_WARN_ON_ONCE_PAGE(), so hopefully we just keep converting code to folios until nobody notices that we might need such a thing.