From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f200.google.com (mail-io0-f200.google.com [209.85.223.200]) by kanga.kvack.org (Postfix) with ESMTP id 319B76B0010 for ; Fri, 13 Jul 2018 19:51:52 -0400 (EDT) Received: by mail-io0-f200.google.com with SMTP id t23-v6so29410117ioa.9 for ; Fri, 13 Jul 2018 16:51:52 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id r90-v6sor10354006ioi.323.2018.07.13.16.51.51 for (Google Transport Security); Fri, 13 Jul 2018 16:51:51 -0700 (PDT) MIME-Version: 1.0 References: <20180713164804.fc2c27ccbac4c02ca2c8b984@linux-foundation.org> In-Reply-To: <20180713164804.fc2c27ccbac4c02ca2c8b984@linux-foundation.org> From: Linus Torvalds Date: Fri, 13 Jul 2018 16:51:39 -0700 Message-ID: Subject: Re: Instability in current -git tree Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton 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, 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. Linus