Date: Wed, 11 Dec 2024 12:52:23 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283256] CLOCK_MONOTONIC in dhclient Message-ID: <bug-283256-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283256 Bug ID: 283256 Summary: CLOCK_MONOTONIC in dhclient Product: Base System Version: 14.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bag@zurbagan.org dhclient uses clock_gettime(CLOCK_MONOTONIC...) to track lease validity. But CLOCK_MONOTONIC doesn't guarantee any relationship with wall clock. For example clock_monotic starts counting from zero on each reboot of my Freebsd 14.2 in proxmox venv.=20 #> cat dhclient.leases.vtnet2 | tail -4 renew 4 1970/1/1 22:10:57; rebind 4 1970/1/1 22:10:52; expire 4 1970/1/1 22:11:57; } Because of this, saved leases (/var/db/dhclient.leases*) are incorrectly considered usable as backup after a reboot. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283256-227>