From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by kanga.kvack.org (Postfix) with ESMTP id 8B1096B0070 for ; Tue, 22 Apr 2014 17:46:41 -0400 (EDT) Received: by mail-pb0-f41.google.com with SMTP id rr13so55280pbb.28 for ; Tue, 22 Apr 2014 14:46:41 -0700 (PDT) Received: from mga09.intel.com (mga09.intel.com. [134.134.136.24]) by mx.google.com with ESMTP id qe5si17106805pbc.324.2014.04.22.14.46.40 for ; Tue, 22 Apr 2014 14:46:40 -0700 (PDT) Message-ID: <5356E33F.3000908@intel.com> Date: Tue, 22 Apr 2014 14:46:39 -0700 From: Dave Hansen MIME-Version: 1.0 Subject: Re: Dirty/Access bits vs. page content References: <1398032742.19682.11.camel@pasglop> <1398054064.19682.32.camel@pasglop> <1398057630.19682.38.camel@pasglop> <53558507.9050703@zytor.com> <53559F48.8040808@intel.com> <20140422075459.GD11182@twins.programming.kicks-ass.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds , Peter Zijlstra , Hugh Dickins Cc: "H. Peter Anvin" , Benjamin Herrenschmidt , "linux-arch@vger.kernel.org" , linux-mm , Russell King - ARM Linux , Tony Luck On 04/22/2014 02:36 PM, Linus Torvalds wrote: > That said, Dave Hansen did report a BUG_ON() in > mpage_prepare_extent_to_map(). His line number was odd, but I assume > it's this one: > > BUG_ON(PageWriteback(page)); > > which may be indicative of some oddity here wrt the dirty bit. I just triggered it a second time. It only happens with my debugging config[1] *and* those two fix patches. It doesn't happen on the vanilla kernel with lost dirty bit. The line numbers point to the head = page_buffers(page); which is: #define page_buffers(page) \ ({ \ BUG_ON(!PagePrivate(page)); \ ((struct buffer_head *)page_private(page)); \ }) 1. http://sr71.net/~dave/intel/20140422-lostdirtybit/config-ext4-bugon.20140422 Config that doesn't trigger it: http://sr71.net/~dave/intel/20140422-lostdirtybit/config-ext4-nobug.20140422 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org