opnsense-src/tests/sys/kqueue
Kyle Evans 121740e185 kqueue: don't arbitrarily restrict long-past values for NOTE_ABSTIME
NOTE_ABSTIME values are converted to values relative to boottime in
filt_timervalidate(), and negative values are currently rejected.  We
don't reject times in the past in general, so clamp this up to 0 as
needed such that the timer fires immediately rather than imposing what
looks like an arbitrary restriction.

Another possible scenario is that the system clock had to be adjusted
by ~minutes or ~hours and we have less than that in terms of uptime,
making a reasonable short-timeout suddenly invalid. Firing it is still
a valid choice in this scenario so that applications can at least
expect a consistent behavior.

(cherry picked from commit 9c999a259f)
(cherry picked from commit 2f4dbe279f)
2021-10-06 02:03:53 -05:00
..
libkqueue kqueue: don't arbitrarily restrict long-past values for NOTE_ABSTIME 2021-10-06 02:03:53 -05:00
Makefile Port contrib/netbsd-tests/kernel/kqueue/... as tests/sys/kqueue/... 2016-09-06 08:50:21 +00:00
Makefile.depend DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
Makefile.inc Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00