Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941378AbcJXVuX (ORCPT ); Mon, 24 Oct 2016 17:50:23 -0400 Received: from mail-yb0-f174.google.com ([209.85.213.174]:37559 "EHLO mail-yb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938908AbcJXVuV (ORCPT ); Mon, 24 Oct 2016 17:50:21 -0400 MIME-Version: 1.0 In-Reply-To: References: <20161018234248.GB93792@clm-mbp.masoncoding.com> <332c8e94-a969-093f-1fb4-30d89be8993e@kernel.org> <20161020225028.czodw54tjbiwwv3o@codemonkey.org.uk> <20161020230341.jsxpia2sy53xn5l5@codemonkey.org.uk> <20161021200245.kahjzgqzdfyoe3uz@codemonkey.org.uk> <20161022152033.gkmm3l75kqjzsije@codemonkey.org.uk> <20161024044051.onmh4h6sc2bjxzzc@codemonkey.org.uk> From: Linus Torvalds Date: Mon, 24 Oct 2016 14:50:18 -0700 X-Google-Sender-Auth: XAP-vaC3srkZ41k0Orv_7fmG1v0 Message-ID: Subject: Re: bio linked list corruption. To: Andy Lutomirski Cc: Dave Jones , Chris Mason , Andy Lutomirski , Jens Axboe , Al Viro , Josef Bacik , David Sterba , linux-btrfs , Linux Kernel 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: 580 Lines: 13 On Mon, Oct 24, 2016 at 2:17 PM, Linus Torvalds wrote: > > The vmalloc/vfree code itself is a bit scary. In particular, we have a > rather insane model of TLB flushing. We leave the virtual area on a > lazy purge-list, and we delay flushing the TLB and actually freeing > the virtual memory for it so that we can batch things up. Never mind. If DaveJ is running with DEBUG_PAGEALLOC, then the code in vmap_debug_free_range() should have forced a synchronous TLB flush fro vmalloc ranges too, so that doesn't explain it either. Linus