summaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-10-23 11:41:22 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-10-29 10:07:04 -0700
commiteca1a08986f622c11b75b3b44d561a1f901c9cec (patch)
tree15a635d885e693d2ee86aed4bcf988e8269d3606 /kernel/fork.c
parentd7e29933969e5ca7c112ce1368a07911f4485dc2 (diff)
downloadlinux-stable-eca1a08986f622c11b75b3b44d561a1f901c9cec.tar.gz
linux-stable-eca1a08986f622c11b75b3b44d561a1f901c9cec.tar.bz2
linux-stable-eca1a08986f622c11b75b3b44d561a1f901c9cec.zip
signal: Exit RCU read-side critical section on each pass through loop
The kill_pid_info() can potentially loop indefinitely if tasks are created and deleted sufficiently quickly, and if this happens, this function will remain in a single RCU read-side critical section indefinitely. This commit therefore exits the RCU read-side critical section on each pass through the loop. Because a race must happen to retry the loop, this should have no performance impact in the common case. Reported-by: Dave Jones <davej@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions