Subject: kern/3740: confused filesystem date
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Jones <cjones@rupert.oscs.montana.edu>
List: netbsd-bugs
Date: 06/11/1997 20:08:29
>Number: 3740
>Category: kern
>Synopsis: confused filesystem date
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 11 19:20:02 1997
>Last-Modified:
>Originator: Chris Jones
>Organization:
>Release: 1.2
>Environment:
System: NetBSD oscar.jones.org 1.2D NetBSD 1.2D (OSCAR) #3: Fri May 2 19:29:21 MDT 1997 cjones@caesar.honors.montana.edu:/amd/rupert/honors/rupert/home/src/current/sys/arch/i386/compile/OSCAR i386
>Description:
In the course of playing with the lfs, I managed to crash my machine.
Upon reboot, I got the following:
WARNING: clock time much less than file system time
WARNING: using file system time
WARNING: CHECK AND RESET THE DATE!
When I check the date, it says:
Dec 28 18:33:57 1965
That's amusing, as the epoch is 1970; overflow, anyone?
Anyway, I reset the time using date, but every time I reboot, the
kernel grabs the time from the filesystem. I read the problem thusly:
1) The kernel has insufficient sanity checking when it sets the date.
2) The time format shouldn't allow overflow, if that's what's really
occurring.
3) When I use date to set the correct time, the filesystem time
should be set to the same value; otherwise, I'll have to reset the
date each time I reboot, like in the original DOS. :(
>How-To-Repeat:
Happens every time I reboot. I don't know what I did to mess up the
filesystem time in the first place; I could provide details of what I
did with lfs, but it appeared to be the simple act of making a
directory and listing its contents.
>Fix:
>Audit-Trail:
>Unformatted: