diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-06-21 23:56:16 +0530 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:13 +0200 |
| commit | c873d392b1c911e75aada1586d073d05cbbc6ed8 (patch) | |
| tree | 81c186046eaac96aee224f10b54672cd9e9ea2ec /include | |
| parent | 41e1172898c515ada8580bbaec7713253cfaa241 (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>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 88d6df612cc3c99f56cc18461fcc531c3a145544
[kishank@codeaurora.org resolve trivial conflicts]
Signed-off-by: Kishan Kumar <kishank@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I43f22a80d4334ea5a7105a6da6f929239df76a11
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
