]> git.baikalelectronics.ru Git - kernel.git/commit
idr test suite: Take RCU read lock in idr_find_test_1
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 1 Apr 2021 11:44:48 +0000 (07:44 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 1 Apr 2021 11:44:48 +0000 (07:44 -0400)
commit200f0bd7f4c82f357207fb6e20b9a5c975b69132
tree1519f5488d549bdd0333767b243c31a48382165d
parentcb68fad32884fd58c5dbc2d67ca920db6a67e2e2
idr test suite: Take RCU read lock in idr_find_test_1

When run on a single CPU, this test would frequently access already-freed
memory.  Due to timing, this bug never showed up on multi-CPU tests.

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