From: Andrew Morton <akpm@linux-foundation.org>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Nickolai Zeldovich <nickolai@csail.mit.edu>,
Baoli Zhang <baoli.zhang@intel.com>,
syzbot+73641b60a3bc11dfca8c@syzkaller.appspotmail.com,
stable@vger.kernel.org
Subject: [PATCH v2 0/2] xarray: initialise the offset of a new root node
Date: Sat, 21 Nov 2026 14:18:26 -0800 [thread overview]
Message-ID: <08ceefcb212e4dda9767389fe7f162a8.0@linux-foundation.org> (raw)
An RCU XArray walker can read a stale root offset just before another
thread grows the tree and links that root beneath a new one. The walker
can then return an entry with the wrong index or skip entries. Check the
root offset after slab reuse and initialize it on allocation.
Nickolai Zeldovich (2):
lib/test_xarray: check the offset of new root nodes
xarray: initialise the offset of a new root node
lib/test_xarray.c | 33 +++++++++++++++++++++++++++++++++
lib/xarray.c | 6 +++---
2 files changed, 36 insertions(+), 3 deletions(-)
next reply other threads:[~2026-11-21 22:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 22:18 Andrew Morton [this message]
2026-11-21 22:18 ` [PATCH v2 1/2] lib/test_xarray: check the offset of new root nodes Andrew Morton
2026-11-21 22:18 ` [PATCH v2 2/2] xarray: initialise the offset of a new root node 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=08ceefcb212e4dda9767389fe7f162a8.0@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=baoli.zhang@intel.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nickolai@csail.mit.edu \
--cc=stable@vger.kernel.org \
--cc=syzbot+73641b60a3bc11dfca8c@syzkaller.appspotmail.com \
--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
all inboxes | Powered by JetHome®