From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796261160; b=LIlDTxw3aEUiEwIvN3F0XBxKjPPqZO8IVzfb4OMLGpY7lg+SajfWhfbxSjeQU2rZIOKY 6GsAlWHZLJG7JPxzzD04BgS4EdLE5bJncXEn82uNi33zwvc4YWhSV73rPIKOlrRlt/oJv ClFdEElrhvyg+6Y9rSpCdVzAu+kFPwB62JC+TG8q89WIPCp33iE5V1bSgBo9g3959KtMW bmYAd09xxltYJR/NGaB1qMCFyFEx3Ez0Te3tsBioakkrQj5+/WzznyNHc95rHwDiJc/GH J/ce55garFtAc3VIO2//eYnZrSsObHZL8Ylij5DenzJqzdRzzZnpLfwMJKpD/mjeLtA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796261160; h=Received:DKIM-Signature:Date:To:Cc:From:Message-Id:Subject; bh=1X1hnXO9VvoW/FDT/N3wLOEFWoM+pFZ0odC9/aEDKbY=; b=rgHg2zNLtlKAVsLSwASveAtsNeByh9CXGGzkk0Z1z45Se/mA2OTyEkV8jfZ0/Igontzm Gouc7nMu5s1QorGzYJbvEMuKaxa9gUQSTI1Euxw3kYssxYUFX9p0WIBkGteAhxj++8dHQ bdLvgN7zjxL09oS1O7Y5kkdnVdad/vSLCqo8LnCgz6b4KtREYpzFMgz0vi2rj1kaX2Go8 VI8cpPysj8n5EnXPKO76HBxHq5KJUEHTdNM6JdBwGpj/e5NCHWl4Eyy8VWYss6mXbbbp9 VPtPTIZ49Sfu87rYt+QbHLPr2aBkkrLibDfPA+eBnbZsLIc2X1VWY6A50bYm6ujVN7w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=SyVHzrGx; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE571606A322 for ; Thu, 3 Dec 2026 01:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=SyVHzrGx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F74B1F000C1; Thu, 3 Dec 2026 01:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796261160; bh=1X1hnXO9VvoW/FDT/N3wLOEFWoM+pFZ0odC9/aEDKbY=; h=Date:To:Cc:From:Subject; b=SyVHzrGxE4xtMKWYTAbG5PTQkm7NvgcHRPZuOveSzKAp6R0DnMUYaeGqZGMk0t7bs iCsFbOwyAIfwSbGi64xJDe97qxO9w8VLBuA+6C/3qEUrdRebqQZDDvbdlW85uXKGE5 vJ9wPE7FqQ4l/tnpyw23ff8lSSTxw4odAEATot5E= Date: Wed, 02 Dec 2026 17:25:59 -0800 To: Matthew Wilcox Cc: linux-mm@kvack.org, Andrew Morton , Qian Xiao , stable@vger.kernel.org From: Andrew Morton Message-Id: Subject: [PATCH 0/3] xarray: fix marked iterator index after multi-index entries X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list A marked XArray lookup can move its index backwards when the search starts in a multi-index entry. A later search can use an offset that no longer agrees with the index and return an entry already passed. Add tests for lookup, splitting, pausing and advancing across marked multi-index entries. Then apply Qian Xiao's iterator fix and prevent a concurrent sibling store from sending an advancing search backwards. Qian Xiao (2): lib/test_xarray: check marked iteration across multi-index entries xarray: fix index jumping backwards in xas_find_marked() Andrew Morton (1): xarray: keep advancing after a concurrent sibling store include/linux/xarray.h | 3 +- lib/test_xarray.c | 165 ++++++++++++++++++++++++++++++++++++++++++++ lib/xarray.c | 28 ++++++-- 3 files changed, 189 insertions(+), 7 deletions(-)