From nobody Mon Oct 17 19:11:03 2022 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 4Mrmml71Jpz4fCrn for ; Mon, 17 Oct 2022 19:11:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mrmml4Sb0z3tXm for ; Mon, 17 Oct 2022 19:11:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4Mrmml3WjDzw3c for ; Mon, 17 Oct 2022 19:11:03 +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 29HJB3MC015485 for ; Mon, 17 Oct 2022 19:11:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29HJB3Zs015484 for bugs@FreeBSD.org; Mon, 17 Oct 2022 19:11:03 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 267157] system reboots when date is set far in the future Date: Mon, 17 Oct 2022 19:11:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jschauma@netmeister.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666033863; 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=omAviBHNRINjpp3gAjwai5GSO/+tVgzowJcgnn12iAY=; b=Xp2G04qFrvEeSZYDoUMwI2ce35iu0NYTkiHqk8MpSx9Nr5X+1nXA3MLuo6G+ANt4rz8JdO 9Ots5WXnLILgy6MeqENBapwjot5mjLzrzch6Mf6VS+ZMo/brlCLFP+Os45Hh5GY0OFLfBv mtZGgOcjXOZ575U321u48MrOfSh4oUKonqsYojuebfqDkCODBvxTbGJ4K1Xyb/TWtYR+su 52EchhtO1HKJFXIYiBb09dl25Ig+5dYh491zJ6v+oHWeLmFCs05d0CVIs8Ug/xX1Ltn0jr d9dsOs2KfRsJF6jjnAAlmoR+hYv4hivd771qDwxoKnf2rJISFlTvNY11enBW8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666033863; a=rsa-sha256; cv=none; b=aIXg/dX9ndV8YYue46WuP+K8yFHKUzAKKn52rzuYsDWDYz/plSQqNLKOXIEoSIb0B9An7L cPTnjbEkOZyLfkTFtVoLGlWO0odV7S3BIHdd9xmJrpeuedcAxGEQq5g89yPUnkuBFqFMQz YeZzUdUIddG8wnXSNxfd+sc0Yff3B3u/fs3A0C+Gv2IZldqZoaVuQULbJn79VIBBzQgLRq yo5f82BGbYUTF8lc9/ZorBx0vxnuKInzAXLobtrlWIt+JaPYApL7jS49lst95UqnpGNNRm ozGy2pwY0kEoWScUOiwmT1W85KXDwUPfaUwfKp18h3s6bPwYT1Yr1GeWVF01Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267157 Bug ID: 267157 Summary: system reboots when date is set far in the future Product: Base System Version: 13.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jschauma@netmeister.org As noted in this thread: https://lists.freebsd.org/archives/freebsd-hackers/2022-October/001550.html FreeBSD/amd64 13.1R on at least AWS instances ami-0cf377776fddcf8ba spontaneously reboot if the date is set to values larger than epoch 49282253052249598. (On 13.0R / ami-00e91cb82b335d15f, this cut-off date appears to be epoch 44093078356492799.) To reproduce: Boot an instance of the given AMI above and log in as ec2-user. $ su # date -f "%s" 49282253052249598 Fri Dec 31 23:59:58 UTC 1561694399 # date -f "%s" 49282253052249599 Fri Dec 31 23:59:59 UTC 1561694399 [ reboots ~three seconds later ] Rather than leading to a reboot, settimeofday(2) (I'm guessing) should retu= rn EINVAL. asomers@ noted that assertions in https://github.com/freebsd/freebsd-src/commit/90a79ac5765a09d48b08518350332= 4584ef0f956 could be added. --=20 You are receiving this mail because: You are the assignee for the bug.=