From vadim@hostel.avtf.net  Mon Mar 24 04:48:09 2008
Return-Path: <vadim@hostel.avtf.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B92291065684
	for <bug-followup@freebsd.org>; Mon, 24 Mar 2008 04:48:09 +0000 (UTC)
	(envelope-from vadim@hostel.avtf.net)
Received: from hostel.avtf.net (ip82-117-84-33.vpn.tomsk.net [82.117.84.33])
	by mx1.freebsd.org (Postfix) with ESMTP id A05B18FC1A
	for <bug-followup@freebsd.org>; Mon, 24 Mar 2008 04:47:51 +0000 (UTC)
	(envelope-from vadim@hostel.avtf.net)
Received: from hostel.avtf.net (localhost [127.0.0.1])
	by hostel.avtf.net (8.14.1/8.14.1) with ESMTP id m2O4lcGG096348;
	Mon, 24 Mar 2008 10:47:39 +0600 (NOVT)
	(envelope-from vadim@hostel.avtf.net)
Received: (from vadim@localhost)
	by hostel.avtf.net (8.14.1/8.14.1/Submit) id m2O4lcCm096344;
	Mon, 24 Mar 2008 10:47:38 +0600 (NOVT)
	(envelope-from vadim)
Message-Id: <200803240447.m2O4lcCm096344@hostel.avtf.net>
Date: Mon, 24 Mar 2008 10:47:38 +0600
From: Vadim Goncharov <vadim_nuclight@mail.ru>
Reply-To: vadim_nuclight@mail.ru
To: Bruce Evans <brde@optusnet.com.au>
Cc: bug-followup@freebsd.org
In-Reply-To: <20080321130531.R58941@delplex.bde.org>
Subject: Re: random st_birthtime
References: <776B93361B7BEE4FAD9E720FFBC746B6BDDB63@34093-EVS4C2.exchange.rackspace.com> <20080321130531.R58941@delplex.bde.org>

>Number:         122031
>Category:       kern
>Synopsis:       Re: random st_birthtime
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 24 04:50:02 UTC 2008
>Closed-Date:    Thu Mar 27 00:15:18 UTC 2008
>Last-Modified:  Thu Mar 27 00:15:18 UTC 2008
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Hi Bruce Evans! 
 
 On Fri, 21 Mar 2008 13:44:43 +1100 (EST); Bruce Evans <brde@optusnet.com.au> wrote:
 
 >> I am running FreeBSD 7.0-RELEASE AMD64 on a dual dual-core xeon system,
 >> and I am having an odd problem with non-UFS filesystems. Any mounted
 >> filesystem that is not UFS will return a random, negative st_birthtime.
 >> Also, each time I stat the file I get a different value.
 > va_birthtime is used uninitialized for most file systems.
 > This gives minor security holes -- kernel stack garbage is returned to
 > userland.  The stack garbage is pointed to in vn_stat() and nothing
 > changes it for some file systems.
 >> The two mounted filesystems with this problem are ext2fs and smbfs.
 > Yes, these are 2 of many which weren't updated when birthtime was
 > added.
 > msdosfs is the only file system which initializes unsupported birthtimes
 > correctly.  It sets va_birthtime.tv_sec to -1, which becomes (time_t)-1,
 > which is the error value for a time_t though it is often misinterpreted
 
 But VFAT supports file creation time in on-disk directory format. Should
 msdosfs be fixed to support them rather returning -1 ?
 
 -- 
 WBR, Vadim Goncharov. ICQ#166852181       mailto:vadim_nuclight@mail.ru
 [Moderator of RU.ANTI-ECOLOGY][FreeBSD][http://antigreen.org][LJ:/nuclight]
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 24 05:54:25 UTC 2008 
Responsible-Changed-Why:  
Please give me a hint as to which PR this is a followup to. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122031 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Mar 27 00:14:57 UTC 2008 
State-Changed-Why:  
I can't tell what PR this is a misfiled followup to. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122031 
>Unformatted:
