xarray: initialise the offset of a new root node
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest2 patches 0 repliesNew
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib/test_xarray: check the offset of new root nodeslib/ | +33 | 0 replies | |
| 2/2 | xarray: initialise the offset of a new root nodelib/ | +3 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Baoli Zhang | Andrew Morton |
|---|---|---|
| 1/2 | ||
| 2/2 | T-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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(-)