summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/src
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2019-01-31 05:00:18 +0000
committercheloha <cheloha@openbsd.org>2019-01-31 05:00:18 +0000
commite12a049bd4bbd1e8315c373a739e08972ed6dd1d (patch)
tree89b2f2100ef5c9651266cbd1dec8063e3f74e8ed /lib/libcxx/src
parentuse "sc" as the name of the softc variable in the ioctl code too. (diff)
downloadwireguard-openbsd-e12a049bd4bbd1e8315c373a739e08972ed6dd1d.tar.xz
wireguard-openbsd-e12a049bd4bbd1e8315c373a739e08972ed6dd1d.zip
tc_setclock: Don't rewind the system uptime during resume/unhibernate.
When we come back from suspend/hibernate the BIOS/firmware/whatever can hand us *any* TOD, so we need to check that the given TOD doesn't set our boot offset backwards, breaking the monotonicity of e.g. CLOCK_MONOTONIC. This is trivial to do from the BIOS on most PCs before unhibernating. There might be other ways it can happen, accidentally or otherwise. This is a bit messy but it can be made prettier later with a "bintimecmp" macro or something like that. Problem confirmed by jmatthew@. "you are very likely right" deraadt@
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions