diff options
author | Ulrich Obergfell <uobergfe@redhat.com> | 2015-11-06 03:44:56 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 04:34:48 +0100 |
commit | 39d2da2161d35de301ec5397ce9103c68b883054 (patch) | |
tree | 0a3608ff72cb3af0c5d66246cc8682dd8753404d /mm/slab_common.c | |
parent | kernel/watchdog.c: remove {get|put}_online_cpus() from watchdog_{park|unpark}... (diff) | |
download | linux-39d2da2161d35de301ec5397ce9103c68b883054.tar.xz linux-39d2da2161d35de301ec5397ce9103c68b883054.zip |
kernel/watchdog.c: fix race between proc_watchdog_thresh() and watchdog_timer_fn()
Theoretically it is possible that the watchdog timer expires right at the
time when a user sets 'watchdog_thresh' to zero (note: this disables the
lockup detectors). In this scenario, the is_softlockup() function - which
is called by the timer - could produce a false positive.
Fix this by checking the current value of 'watchdog_thresh'.
Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Reviewed-by: Aaron Tomlin <atomlin@redhat.com>
Cc: Ulrich Obergfell <uobergfe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions