Skip to content

xarray: initialise the offset of a new root node

Andrew Morton linux-fsdevel linux-mm lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/test_xarray: check the offset of new root nodeslib/test_xarray.c+33 -00 replies
2/2xarray: initialise the offset of a new root nodelib/xarray.c+3 -30 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchBaoli ZhangAndrew Morton
1/2
2/2T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] xarray: initialise the offset of a new root node

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