Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Matthew Wilcox <willy@infradead.org>
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	Qian Xiao <heyheyco@gmail.com>,
	stable@vger.kernel.org
Subject: [PATCH 0/3] xarray: fix marked iterator index after multi-index entries
Date: Wed, 02 Dec 2026 17:25:59 -0800	[thread overview]
Message-ID: <b0bf98a720f546f69ae25ce7a9ebf702.0@linux-foundation.org> (raw)

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(-)


             reply	other threads:[~2026-12-03  1:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  1:25 Andrew Morton [this message]
2026-12-03  1:26 ` [PATCH 1/3] lib/test_xarray: check marked iteration across multi-index entries Andrew Morton
2026-12-03  1:26 ` [PATCH 2/3] xarray: fix index jumping backwards in xas_find_marked() Andrew Morton
2026-12-03  1:26 ` [PATCH 3/3] xarray: keep advancing after a concurrent sibling store Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b0bf98a720f546f69ae25ce7a9ebf702.0@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=heyheyco@gmail.com \
    --cc=linux-mm@kvack.org \
    --cc=stable@vger.kernel.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox