From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 073CAC7619A for ; Wed, 12 Apr 2023 08:12:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9B577280002; Wed, 12 Apr 2023 04:12:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96674900002; Wed, 12 Apr 2023 04:12:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 82D8A280002; Wed, 12 Apr 2023 04:12:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 74F7C900002 for ; Wed, 12 Apr 2023 04:12:53 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 43DC1140F52 for ; Wed, 12 Apr 2023 08:12:53 +0000 (UTC) X-FDA: 80672023026.10.ACFEE03 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf29.hostedemail.com (Postfix) with ESMTP id A694D120012 for ; Wed, 12 Apr 2023 08:12:51 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=HSo7hxvk; spf=pass (imf29.hostedemail.com: domain of gregkh@linuxfoundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org; dmarc=pass (policy=none) header.from=linuxfoundation.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681287171; a=rsa-sha256; cv=none; b=iIf8UCdzyfJ6A2REPGNIz1y3e41GyHiN6k0Ro8dgnS1FAjyclHIT7A8E7GURccrfQI9Jbi 54SCTZcBTJNiDWQn0lZM3Kqn2oDUQpOPNTG5PEXPK4QePZS4NUVCcNa8DmD1fMaYNiSqMs /2RVvMDQLl56N7QEbs27Z8O5zFmYdP4= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=HSo7hxvk; spf=pass (imf29.hostedemail.com: domain of gregkh@linuxfoundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org; dmarc=pass (policy=none) header.from=linuxfoundation.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681287171; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=EyNeNvxOhFIVlYcM4xqE3+/wbKKhgD+uVoj0JUbqKFI=; b=g+rD+nDRqwdkuTfrpnq9LKihKvQYu40nE0vIZKrkVxLnIYouYmNB0rsAqIXAEh2D80rivl srh5eJ5wuQSH4M+BSgKfQgsPF/e1ziIbsL7Qz7Q1fwVoDx5+/Rlj0dhIM+u4AQ4RwQpeOX AfQ5eakL9nFTs9FC56vy4j45WsE5Sqk= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D729E62AB2; Wed, 12 Apr 2023 08:12:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED92DC433EF; Wed, 12 Apr 2023 08:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681287170; bh=4kD1X1nPDIuP65hrqHo1MNSV41ybwOyniFd+/ESov6g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HSo7hxvk8+Eh91VJA/ftbToDEXJWqPBcTuS4Br4mPz3rEk8UOp1KVOq6o7Hl8nsWR lLEAsrejZIAvHZw/vkZ8GrcOBZFo3m8e78GoF04UiWvw3w5+7Y/bKeWEg/XhW+39xB kD2Ip8hCHxEHhV6ft66U2ARekS6I11GxeBbsd6p4= Date: Wed, 12 Apr 2023 10:12:41 +0200 From: Greg Kroah-Hartman To: "Liam R. Howlett" Cc: stable@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6.1 00/14] Backport of maple tree fixes for 6.1/6.2 Message-ID: <2023041216-nemeses-uproot-5d4a@gregkh> References: <20230411151055.2910579-1-Liam.Howlett@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230411151055.2910579-1-Liam.Howlett@oracle.com> X-Rspam-User: X-Rspamd-Queue-Id: A694D120012 X-Rspamd-Server: rspam01 X-Stat-Signature: wdijq4s1yg7fsp4158ipsdmxus4giffm X-HE-Tag: 1681287171-879228 X-HE-Meta: U2FsdGVkX1/fXoKx4vM0YL08sFrcNB9dvzniiqcqbwE8jIPuw8Ui41bfuopzIYfZEiMVreKqW+962E3tBs5b+X/T3tNfC+T6niD/2hrSqgEjdZebgseDEDjS5IU3NBbHtngKGD44sY2eJHiJrXAGR86a9Hly5RoiARt0CBGOvUD4+oB2VdCyf27X07EQ38f+OAMxbOYjHyrZYDWMK3fo72PrIVy/m9jMwtt80JAYGaadGs5iK++hEEq0NP18oy4+wfZZfiVwPQ9DQQUkMB2+2lbvSuMhoMNXBG46XkhwmdnNVIfH0dyl9+d7uR+BZbOkwjbpumMunPDtr7m795uaAqntSg+tihzUDsktvuea/vXBiRaQMvRbY6o0jnRmAycfrlOsJIsZsExs18OeC6fqKxZnQNy3PsNSUr2b38xfKBIiaCBHND5j41qhMOnwOKcY8ffWw5k2l8ORgmFQ9/7nvWU/Tv0C46YR8QEjcJVR1LxpVNEPZN/iFHsjIHxZnOqK6jV1Euhrbtd7Ae3+lC7dmE0o8Q24gP++kZoyocyJHeG8FnJ49u3nB4p1MLq5ZOqAZmU+ntsIuLFH7a/xPbfR4DtObDv1qyqzEyt0l9c8UhoatzIPY3LBtuhob9JmdswlNQ+cXLTqYvkputhgBQuxpad3eKxCxWHuh6CZ8qCWvC8jUoGoqDY0wohyDGMFdVR3XcOQ027ny/PXBHjR7fA8mK6l42xpVF0USUiQ5e3sQe7Dx5HzY8mhp4LDR9OB6J9bXqRNTkDlgu7YnzCQbINRkuOWV8RPmfabQ5zy+9Xr2Ez1zx/aWrOwE2LPn3zPrfsCx1hLvHjIyWOZZcVdwIZVRD/aDstS5/ub+Ba4lbe8qSAksfBGKM+ZufxDcAC7gGWCxYmsmn+W8oHIs7uFsS+Zfm9rBughH5KLUyUOZmy7pVBSjxGYoNG6w4J5dUEi/jUxPjGXBzyuAqaHpuq+jwg MUsg2v0E YYWpq6XOy3j8Diq0O8tfczkA25HN0ZtVf2TUoP65a7QHavcY7yblxq+uxONksBbO3osb5AT3iUe/KU5R8jHJMnwDsXs/KijZmhHPbNYYIackaa7rw88zZGfyEfB6mPxyTHev1Dn4kRYna6uP1yKnWYSK/5pM08N+LLVAzF7kW4sA5GmpsF52HcEZw6FF6vWc5YOyYQXbbP8w5qvIUfe+LHbKVklhbzusCplS427hXmsmZaMdFGaY0RDoT0/cxTSXmPe3qaRrF4/9W5hE/NWCPmS1EkHqM2iKQPn4Gqp4IZjJkJWP61h3v2W/dhpzsOpTaEo2QKC62mxWF0uk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Apr 11, 2023 at 11:10:41AM -0400, Liam R. Howlett wrote: > Greg, > > Here are the backports of the patches for the maple tree fixes from > 6.3-rc6 for 6.1 and 6.2. > > The patches differ with a few extra patches for the maple tree, and > changes to the mm code patch to work without the vma iterator change. > > Liam R. Howlett (14): > maple_tree: remove GFP_ZERO from kmem_cache_alloc() and > kmem_cache_alloc_bulk() > maple_tree: fix potential rcu issue > maple_tree: reduce user error potential > maple_tree: fix handle of invalidated state in mas_wr_store_setup() > maple_tree: fix mas_prev() and mas_find() state handling > maple_tree: fix mas_skip_node() end slot detection > maple_tree: be more cautious about dead nodes > maple_tree: refine ma_state init from mas_start() > maple_tree: detect dead nodes in mas_start() > maple_tree: fix freeing of nodes in rcu mode > maple_tree: remove extra smp_wmb() from mas_dead_leaves() > maple_tree: add smp_rmb() to dead node detection > maple_tree: add RCU lock checking to rcu callback functions > mm: enable maple tree RCU mode by default. > > include/linux/mm_types.h | 3 +- > kernel/fork.c | 3 + > lib/maple_tree.c | 389 ++++++++++++++++++++----------- > mm/mmap.c | 3 +- > tools/testing/radix-tree/maple.c | 18 +- > 5 files changed, 263 insertions(+), 153 deletions(-) > > -- > 2.39.2 > Thanks for these. One of them was already in the 6.2.y and 6.1.y releases, so I just skipped it. greg k-h