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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:43:21 +0000 (11:43 +0200)
commitedd822b6924154c84383c3a9a513a7c9b7c98fd8
tree0f8f2d899993498f16db36c52c4f33611fa6aa8f
parent1d2310d95fb8e29e69ebfc038919c968fbbdcb64
radix tree test suite: Register the main thread with the RCU library

[ Upstream commit 1bb4bd266cf39fd2fa711f2d265c558b92df1119 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/radix-tree/idr-test.c
tools/testing/radix-tree/multiorder.c
tools/testing/radix-tree/xarray.c