]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rcuperf: Do not wake up shutdown wait queue if "shutdown" is false.
authorArtem Savkov <artem.savkov@gmail.com>
Sun, 7 Feb 2016 12:31:39 +0000 (13:31 +0100)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 31 Mar 2016 20:39:51 +0000 (13:39 -0700)
commite6fb1fc1085e5b5155bc8f3d3385c48b8bdde95e
tree2879f06cb02b7c9a466eeb3cde9b4e361bde044f
parentdba6f1bab8920a6f78b0dc21976afdecf82fba3f
rcuperf: Do not wake up shutdown wait queue if "shutdown" is false.

After finishing its tests rcuperf tries to wake up shutdown_wq even if
"shutdown" param is set to false, resulting in a wake_up() call on an
unitialized wait_queue_head_t which leads to "BUG: spinlock bad magic" and
"BUG: unable to handle kernel NULL pointer dereference".

Fix by checking "shutdown" param before waking up the queue.

Signed-off-by: Artem Savkov <artem.savkov@gmail.com>
kernel/rcu/rcuperf.c