Subject: kern/3740: confused filesystem date
To: None <email@example.com>
From: Chris Jones <firstname.lastname@example.org>
Date: 06/11/1997 20:08:29
>Synopsis: confused filesystem date
>Responsible: kern-bug-people (Kernel Bug People)
>Arrival-Date: Wed Jun 11 19:20:02 1997
>Originator: Chris Jones
System: NetBSD oscar.jones.org 1.2D NetBSD 1.2D (OSCAR) #3: Fri May 2 19:29:21 MDT 1997 email@example.com:/amd/rupert/honors/rupert/home/src/current/sys/arch/i386/compile/OSCAR 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
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
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.