Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] xarray: fix marked iterator index after multi-index entries
@ 2026-12-03  1:25 Andrew Morton
  2026-12-03  1:26 ` [PATCH 2/3] xarray: fix index jumping backwards in xas_find_marked() Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2026-12-03  1:25 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-mm, Andrew Morton, Qian Xiao, stable

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03  1:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  1:25 [PATCH 0/3] xarray: fix marked iterator index after multi-index entries Andrew Morton
2026-12-03  1:26 ` [PATCH 2/3] xarray: fix index jumping backwards in xas_find_marked() Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox