summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/strlcat.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2018-12-05 18:02:51 +0000
committerreyk <reyk@openbsd.org>2018-12-05 18:02:51 +0000
commitc14cae502b873fdbeef96caa87fc29637a797bf8 (patch)
treeb21eb6c29d0ee244cf0e1e0edfc486ec2076985c /sys/lib/libkern/strlcat.c
parentusb_block_allocmem() won't sleep. (diff)
downloadwireguard-openbsd-c14cae502b873fdbeef96caa87fc29637a797bf8.tar.xz
wireguard-openbsd-c14cae502b873fdbeef96caa87fc29637a797bf8.zip
Correctly disable pvclock(4) on old hardware that lack a stable clock
I falsely assumed that the KVM_FEATURE_CLOCKSOURCE_STABLE_BIT indicates that the actual clock values are stable, but it turned out that this isn't always the case. To detect if the clock value is stable, we now read it once in pvclock_attach() and check for the PVCLOCK_FLAG_TSC_STABLE flag. This needs further investigation. Reported and fix tested by johnw.mail at gmail.com OK chris@ phessler@
Diffstat (limited to 'sys/lib/libkern/strlcat.c')
0 files changed, 0 insertions, 0 deletions