Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S946027AbcJaTfX (ORCPT ); Mon, 31 Oct 2016 15:35:23 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:36405 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S945947AbcJaTfU (ORCPT ); Mon, 31 Oct 2016 15:35:20 -0400 MIME-Version: 1.0 In-Reply-To: <20161031185514.b22zvbxvga4xcinz@codemonkey.org.uk> References: <20161026224025.mou27kki4bslftli@codemonkey.org.uk> <2bdc068d-afd5-7a78-f334-26970c91aaca@fb.com> <203e0319-bc9b-245c-e162-709267540d22@fb.com> <20161026233808.GC15247@clm-mbp.thefacebook.com> <20161026234751.e66xyzjiwifvbuha@codemonkey.org.uk> <20161031185514.b22zvbxvga4xcinz@codemonkey.org.uk> From: Linus Torvalds Date: Mon, 31 Oct 2016 12:35:16 -0700 X-Google-Sender-Auth: oUAopmIGWD_mnPIC823VcnLC1zA Message-ID: Subject: Re: bio linked list corruption. To: Dave Jones , Chris Mason , Jens Axboe , Linus Torvalds , Andy Lutomirski , Andy Lutomirski , Al Viro , Josef Bacik , David Sterba , linux-btrfs , Linux Kernel , Dave Chinner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 769 Lines: 19 On Mon, Oct 31, 2016 at 11:55 AM, Dave Jones wrote: > > BUG: Bad page state in process kworker/u8:12 pfn:4e0e39 > page:ffffea0013838e40 count:0 mapcount:0 mapping:ffff8804a20310e0 index:0x100c > flags: 0x400000000000000c(referenced|uptodate) > page dumped because: non-NULL mapping Hmm. So this seems to be btrfs-specific, right? I searched for all your "non-NULL mapping" cases, and they all seem to have basically the same call trace, with some work thread doing writeback and going through btrfs_writepages(). Sounds like it's a race with either fallocate hole-punching or truncate. I'm not seeing it, but I suspect it's btrfs, since DaveJ clearly ran other filesystems too but I am not seeing this backtrace for anything else. Linus