From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f71.google.com (mail-pl0-f71.google.com [209.85.160.71]) by kanga.kvack.org (Postfix) with ESMTP id ED12A6B0269 for ; Fri, 13 Jul 2018 19:58:15 -0400 (EDT) Received: by mail-pl0-f71.google.com with SMTP id t19-v6so20652109plo.9 for ; Fri, 13 Jul 2018 16:58:15 -0700 (PDT) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id d8-v6si16792266pgn.382.2018.07.13.16.58.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 16:58:14 -0700 (PDT) Date: Fri, 13 Jul 2018 16:58:12 -0700 From: Andrew Morton Subject: Re: Instability in current -git tree Message-Id: <20180713165812.ec391548ffeead96725d044c@linux-foundation.org> In-Reply-To: References: <20180713164804.fc2c27ccbac4c02ca2c8b984@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: Thomas Gleixner , Matthew Wilcox , Ingo Molnar , Jens Axboe , Greg Kroah-Hartman , David Miller , Al Viro , Dave Airlie , Tejun Heo , Ted Ts'o , Mike Snitzer , linux-mm , Daniel Vacek , Pavel Tatashin , Mel Gorman On Fri, 13 Jul 2018 16:51:39 -0700 Linus Torvalds wrote: > On Fri, Jul 13, 2018 at 4:48 PM Andrew Morton wrote: > > > > (But it would be interesting to see whether removing the check "fixes" it) > > I'm building a "replace VM_BUG_ON() with proper printk's instead" right now. > > Honestly, I think VM_BUG_ON() is complete garbage to begin with. We > know the code can't depend on it, since it's only enabled for VM > developers. And if it ever triggers, it doesn't get logged because the > machine is dead (since the VM code almost always holds critical > locks). So it's exactly the worst kind of BUG_ON. > > Can we turn VM_BUG_ON() into "WARN_ON_ONCE()" and be done with it? The > VM developers will actually get better reports, and non-vm-developers > don't have dead machines. > OK by me. I don't recall ever thinking "gee, I wish the machine had crashed at this point". However we shouldn't simply blunder on in the presence of possible memory corruption so a conversion would need to be done carefully.