summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-08-08 21:44:31 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-09-23 09:16:11 -0700
commit88d6df612cc3c99f56cc18461fcc531c3a145544 (patch)
tree3f3c9e77bea5a07bf4570a4313d66eb80a58f6ee /include
parentf7be82093952ee4a74ffc8c729b2811f908cd9a4 (diff)
rcu: Prevent spurious-wakeup DoS attack on rcu_gp_kthread()
Spurious wakeups in the force-quiescent-state loop in rcu_gp_kthread() cause the timeout to be recalculated, which would prevent rcu_gp_fqs() from ever being called. This would in turn would prevent the grace period from ever ending for as long as there was at least one CPU in an extended quiescent state that had not yet passed through a quiescent state. This commit therefore avoids recalculating the timeout unless the previous pass's call to wait_event_interruptible_timeout() actually did time out, thus preventing the above scenario. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions