Skip to content

fix radix tree multi-order iteration race

Ross Zwisler linux-nvdimm lkml nvdimm stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 17 repliesIn review 1 of 5 applied

Patches in v1 1 of 5 applied

#Subject and filesSizeRepliesApplied
1/5radix tree test suite: fix mapshift build targettools/testing/radix-tree/Makefile+2 -49 replies
2/5radix tree test suite: fix compilation issuetools/include/linux/spinlock.h+2 -10 replies
3/5radix tree test suite: add item_delete_rcu()tools/testing/radix-tree/test.c tools/testing/radix-tree/test.h+21 -00 replies
4/5radix tree test suite: multi-order iteration racetools/testing/radix-tree/multiorder.c tools/testing/radix-tree/test.h+64 -00 replies
5/5radix tree: fix multi-order iteration racelib/radix-tree.c+2 -42 repliesApplied

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchJan Kara
1/5
2/5
3/5
4/5
5/5R-b

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

Read the v1 thread

Cover letter [PATCH 0/5] fix radix tree multi-order iteration race

The following series gets the radix tree test suite compiling again in the current linux/master, adds a unit test which exposes a race in the radix tree multi-order iteration code, and then fixes that race.

This race was initially hit on a v4.15 based kernel and results in a GP fault. I've described the race in detail in patches 4 and 5.

The fix is simple and necessary, and I think it should be merged for v4.17.

This tree has gotten positive build confirmation from the 0-day bot, passes the updated radix tree test suite, xfstests, and the original test that was hitting the race with the v4.15 based kernel.

Ross Zwisler (5):
radix tree test suite: fix mapshift build target radix tree test suite: fix compilation issue radix tree test suite: add item_delete_rcu() radix tree test suite: multi-order iteration race radix tree: fix multi-order iteration race

 lib/radix-tree.c                      |  6 ++--
 tools/include/linux/spinlock.h        |  3 +-
 tools/testing/radix-tree/Makefile     |  6 ++--
 tools/testing/radix-tree/multiorder.c | 63 +++++++++++++++++++++++++++++++++++
 tools/testing/radix-tree/test.c       | 19 +++++++++++
 tools/testing/radix-tree/test.h       |  3 ++
 6 files changed, 91 insertions(+), 9 deletions(-)
Signature · 6 lines
2.14.3

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm