Skip to content
Commit b9809552 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

random: fix locking dependency with the tasklist_lock



Commit 61337054 introduced a circular lock dependency because
posix_cpu_timers_exit() is called by release_task(), which is holding
a writer lock on tasklist_lock, and this can cause a deadlock since
kill_fasync() gets called with nonblocking_pool.lock taken.

There's no reason why kill_fasync() needs to be taken while the random
pool is locked, so move it out to fix this locking dependency.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Reported-by: default avatarRuss Dill <Russ.Dill@gmail.com>
Cc: stable@kernel.org
parent 19f949f5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment