]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea0a6eae02ac244e205f081f5ff40c054bcbc360
tree9c38ae5cb23856d0efcef808ac667a41aedc14b5
parent5c827b46d9ade4f51b36ebefc6fbd13e9f7f600f
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