From nobody Wed Dec 11 12:52:23 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y7b933jzkz5gtHv for ; Wed, 11 Dec 2024 12:52:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7b932D4Bz537Q for ; Wed, 11 Dec 2024 12:52:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733921543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EE79nuqEPVXZhG9w6ueozBNGnFC0k5/p+Mc16AnAXQ0=; b=tHVxsd30izBe2JOUjNgM/11AZHI1S2IGiJQSwBSKu1/ZWwbPuhu4cODVoKhJ/9P6tiwrGS KfK78hut1Z+QC/0d5muUc/djUBzWCBp8rZrWmirwzF9HkzfoEqi+b7nYx3Bl9/YVharLnx nliyPf0YHpK3bhiSRUrdRyFsh5dX3u9tqJBLrvmrpcqrOjufibY0VE+tywJM8K5K9DL2Mg QqCNzBtTRGdL9AaexVn0vQRUu8fsaaCUy1YpWqaDpZN1wh2Wvz30AJcY1ovnMYf8S+N9Zu XcEQyqa7d6u0gorsWl/5we2F1xJyykSfF6P8TBdxL5L4r8p4moUy+fqHf+qgrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733921543; a=rsa-sha256; cv=none; b=X85TOqIGbti2JfkMxWoPim8oHLxPrljk5RhawOEHwp3aIGJK6yMeLpVHGdcJuq58hyc98e Hqb3qdMDMsd5FmU/Gt/6K9vpLGh1SLXim5sLtFgPcIz20LYwMwVhBSICoRrO0djLpwsfaf 5MzeyoEw2suixOQVEuorwQ9LUGnPIMXI+7r3r5ts0poNGBQxmsdM7N6rrhgHJaN6AkpV4S hGMZAHaPhrg6DfCXw4JnkQKhcWXRBHUTAqOPRObzeVRtJESRlj9oGImGcqkpYKKDyV1lRO 89vFz1oQMem4PcKgRXIcRsq2txpCMKgOB6TmMymVdDbsT1k9NPbeSafVpd7IqA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y7b931qg6z183L for ; Wed, 11 Dec 2024 12:52:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BBCqN4V002651 for ; Wed, 11 Dec 2024 12:52:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BBCqNR6002650 for bugs@FreeBSD.org; Wed, 11 Dec 2024 12:52:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283256] CLOCK_MONOTONIC in dhclient Date: Wed, 11 Dec 2024 12:52:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bag@zurbagan.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 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.=