radix tree test suite: Register the main thread with the RCU library
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 31 Mar 2021 18:59:19 +0000 (14:59 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 1 Apr 2021 11:41:30 +0000 (07:41 -0400)
commit1bb4bd266cf39fd2fa711f2d265c558b92df1119
tree9c38ae5cb23856d0efcef808ac667a41aedc14b5
parent7487de534dcbe143e6f41da751dd3ffcf93b00ee
radix tree test suite: Register the main thread with the RCU library

Several test runners register individual worker threads with the
RCU library, but neglect to register the main thread, which can lead
to objects being freed while the main thread is in what appears to be
an RCU critical section.

Reported-by: Chris von Recklinghausen <crecklin@redhat.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
tools/testing/radix-tree/idr-test.c
tools/testing/radix-tree/multiorder.c
tools/testing/radix-tree/xarray.c