summaryrefslogtreecommitdiffstats
path: root/share/man/man9/taskqueue.9
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-09-15 08:42:06 +0000
committeradrian <adrian@FreeBSD.org>2011-09-15 08:42:06 +0000
commitf23b1f625d09ffd3a8da3c62c0b6305e9c42119d (patch)
treef2172f5c1ff46d006888811bb7b1f7265455d37c /share/man/man9/taskqueue.9
parentb3c2a1450629f5cb9384bf41c77bd7011a6eba5e (diff)
downloadFreeBSD-src-f23b1f625d09ffd3a8da3c62c0b6305e9c42119d.zip
FreeBSD-src-f23b1f625d09ffd3a8da3c62c0b6305e9c42119d.tar.gz
Ensure that ta_pending doesn't overflow u_short by capping its value at USHRT_MAX.
If it overflows before the taskqueue can run, the task will be re-added to the taskqueue and cause a loop in the task list. Reported by: Arnaud Lacombe <lacombar@gmail.com> Submitted by: Ryan Stone <rysto32@gmail.com> Reviewed by: jhb Approved by: re (kib) MFC after: 1 day
Diffstat (limited to 'share/man/man9/taskqueue.9')
-rw-r--r--share/man/man9/taskqueue.92
1 files changed, 1 insertions, 1 deletions
diff --git a/share/man/man9/taskqueue.9 b/share/man/man9/taskqueue.9
index f45a149..40d64af 100644
--- a/share/man/man9/taskqueue.9
+++ b/share/man/man9/taskqueue.9
@@ -133,7 +133,7 @@ If the task's
.Va ta_pending
field is non-zero,
then it is simply incremented to reflect the number of times the task
-was enqueued.
+was enqueued, up to a cap of USHRT_MAX.
Otherwise,
the task is added to the list before the first task which has a lower
.Va ta_priority
OpenPOWER on IntegriCloud