Subject: kern/3740: confused filesystem date
To: None <>
From: Chris Jones <>
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
>Originator:     Chris Jones
>Release:        1.2
System: NetBSD 1.2D NetBSD 1.2D (OSCAR) #3: Fri May 2 19:29:21 MDT 1997 i386

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

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
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.  :(
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.