Received: by 10.192.165.148 with SMTP id m20csp4586373imm; Tue, 8 May 2018 10:45:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpX5vijbQmL01RKDrGTVctnaE7qEPMOc5tpgGSbnyVJ3Hxd7URxY+k9zFltIzpsFaXJ33UZ X-Received: by 2002:a65:4d07:: with SMTP id i7-v6mr19595955pgt.149.1525801517884; Tue, 08 May 2018 10:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525801517; cv=none; d=google.com; s=arc-20160816; b=muh8RSkfTbX15LULAeDhz7r0QtkSf1cVOABODJGzBQ//XOOemKpJvDrjgBdxwjxPnm egFP1I0iJB2zPEERm9kSFBaD5OQtFGg2+ajhG8pXyvaTDwwXy5WsTEbuVhlgPT7wEVyX PM6mejUoR9pkNmg0jmqL7qJS0xWaRi4msQM8xiAHo2aVC3XjSEA9xTw2mFF6b6rc2XCE ugfT6srxxsCRLUpK3N19VNbw+nE7RwxcTpZ7e63wIN2K0321xmyImROfZU8vk1niRew9 ulpzEeJQy0J//TJvpnVhfooKuCa+JtSuHnaIdAoSMAepN4H+jEc/1UrQ7u66KljODEoR eEPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=gCEiqWSWVsIvzclMQRCG85gKzUl1QBY5KL0PZYlUmYQ=; b=D76lTDfOrlzBXjB2WtmRQwgzruuCAsu38mzFcNUyf8IO5G/G+jqhzc3IOQoYTZ+IS5 r/GsTtjNCuguDpyCjTuQRcBAwGkrDhQBqYYwh5tkrZPRNVRRBCF9j8jFvo55slrB1sn9 MRUvKQY5QEllRvMO9uOuJSrfCvynSNU09zD3T0pwfx6SHt6PBL/FX8/JVnGDkAyAW2hW ak2mUXiXW5G96kOZgIMQuj/AymmsHL4/TcP69VJ+ATNW2XtetNT0PUan9QlrHKhvrjTP X5FaYNOkFZV8LbooFILYdcpF3/jgJ9E2Tt6u3crn6daN5Enw6GgwQ8gT8VMqge6Av61J lyNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g59-v6si25641138plb.381.2018.05.08.10.45.03; Tue, 08 May 2018 10:45:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755578AbeEHRo3 (ORCPT + 99 others); Tue, 8 May 2018 13:44:29 -0400 Received: from mga02.intel.com ([134.134.136.20]:58509 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755122AbeEHRo0 (ORCPT ); Tue, 8 May 2018 13:44:26 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2018 10:44:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,379,1520924400"; d="scan'208";a="56988514" Received: from theros.lm.intel.com (HELO linux.intel.com) ([10.232.112.164]) by orsmga002.jf.intel.com with ESMTP; 08 May 2018 10:44:24 -0700 Date: Tue, 8 May 2018 11:44:24 -0600 From: Ross Zwisler To: Ross Zwisler Cc: Andrew Morton , linux-kernel@vger.kernel.org, Matthew Wilcox , Christoph Hellwig , Dan Williams , Dave Chinner , Jan Kara , linux-nvdimm@lists.01.org Subject: Re: [PATCH 0/5] fix radix tree multi-order iteration race Message-ID: <20180508174424.GA12638@linux.intel.com> References: <20180503192430.7582-1-ross.zwisler@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503192430.7582-1-ross.zwisler@linux.intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 01:24:25PM -0600, Ross Zwisler wrote: > The following series gets the radix tree test suite compiling again in > the current linux/master, adds a unit test which exposes a race in the > radix tree multi-order iteration code, and then fixes that race. > > This race was initially hit on a v4.15 based kernel and results in a GP > fault. I've described the race in detail in patches 4 and 5. > > The fix is simple and necessary, and I think it should be merged for > v4.17. > > This tree has gotten positive build confirmation from the 0-day bot, > passes the updated radix tree test suite, xfstests, and the original > test that was hitting the race with the v4.15 based kernel. > > Ross Zwisler (5): > radix tree test suite: fix mapshift build target > radix tree test suite: fix compilation issue > radix tree test suite: add item_delete_rcu() > radix tree test suite: multi-order iteration race > radix tree: fix multi-order iteration race > > lib/radix-tree.c | 6 ++-- > tools/include/linux/spinlock.h | 3 +- > tools/testing/radix-tree/Makefile | 6 ++-- > tools/testing/radix-tree/multiorder.c | 63 +++++++++++++++++++++++++++++++++++ > tools/testing/radix-tree/test.c | 19 +++++++++++ > tools/testing/radix-tree/test.h | 3 ++ > 6 files changed, 91 insertions(+), 9 deletions(-) > > -- > 2.14.3 > Ping on this series. Does anyone have any feedback? Matthew? I'd really like to get it into v4.17. We can take it through the libnvdimm tree, if that's easiest.