diff options
| author | Jiacheng Xu <stitch@zju.edu.cn> | 2026-08-25 15:03:15 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-31 07:31:46 -1000 |
| commit | 068c35b5d0546c8625b3d7c61910f73775cf1216 (patch) | |
| tree | 68550bc15545b7ab677c676ef280300a55f4eef0 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | cf9c8aaea0d47410df8708bec195889f3a85cd3c (diff) | |
workqueue: reject watchdog thresholds that overflow jiffies
The watchdog threshold is supplied in seconds but is multiplied by HZ
before being used as a jiffies interval. Reject values that exceed
MAX_JIFFY_OFFSET / HZ so the multiplication cannot wrap and the
time_after() comparisons remain within their supported range.
The check is performed before changing the threshold or watchdog timer.
Zero remains the value used to disable the watchdog.
Fixes: 82607adcf9cdf ("workqueue: implement lockup detector")
Signed-off-by: Jiacheng Xu <stitch@zju.edu.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
