freebsd-dev/contrib/netbsd-tests/lib
Bryan Drewery 70c144dc78 nanosleep(2): Fix bogus incrementing of rmtp by tc_tick_sbt on [EINTR].
sbt is the time in the future that the tsleep_sbt() is expected to be completed
at.  sbtt is the current time.  Depending on the precision with sysctl
kern.timecounter.alloweddeviation the start time may be incremented by
tc_tick_sbt.  The same increment is needed for the current time of sbtt before
calculating the difference.  The impact of missing this increment is that rmtp
may increase by one tc_tick_sbt on every early [EINTR] return.  If the same
struct is passed in for rqtp as rmtp this can result in rqtp effectively
incrementing by tc_tick_sbt and sleeping longer than originally intended.

This problem was introduced in r247797.

Reviewed by:	kib, markj, vangyzen (all on an older version of the test)
MFC after:	2 weeks
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D14362
2018-02-14 18:43:50 +00:00
..
csu
libbluetooth
libbpfjit Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
libc nanosleep(2): Fix bogus incrementing of rmtp by tc_tick_sbt on [EINTR]. 2018-02-14 18:43:50 +00:00
libcrypt Hack test so that it works on FreeBSD. 2015-12-01 21:22:29 +00:00
libcurses Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
libdes
libevent
libexecinfo Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
libm Oops... put the atf_tc_expect_fail in the testcase definition, not the 2017-02-07 19:02:59 +00:00
libobjc
libposix Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
libppath
libprop
libpthread Merge ^/vendor/NetBSD/tests/dist@r312370 2017-01-18 05:36:09 +00:00
libpthread_dbg Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
librefuse Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
librt Add sem_clockwait_np() 2017-02-23 19:36:38 +00:00
librumpclient Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
librumphijack Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
libskey
libsljit
libusbhid Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
libutil Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
semaphore Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00