diff options
author | adrian <adrian@FreeBSD.org> | 2011-09-15 08:42:06 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-09-15 08:42:06 +0000 |
commit | f23b1f625d09ffd3a8da3c62c0b6305e9c42119d (patch) | |
tree | f2172f5c1ff46d006888811bb7b1f7265455d37c /share/man/man9/taskqueue.9 | |
parent | b3c2a1450629f5cb9384bf41c77bd7011a6eba5e (diff) | |
download | FreeBSD-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.9 | 2 |
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 |