public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] ext4 timestamps corruption
@ 2011-06-10  8:27 Akira Fujita
  2011-06-11 16:48 ` Andreas Dilger
  0 siblings, 1 reply; 10+ messages in thread
From: Akira Fujita @ 2011-06-10  8:27 UTC (permalink / raw)
  To: Theodore Tso, ext4 development

Hi,

Officially, ext4 can handle its timestamps until 2514
with 32bit entries plus EPOCH_BIT (2bits).
But when timestamps values use 32+ bit
(e.g. 2038-01-19 9:14:08 0x0000000080000000),
we can get corrupted values.
Because sign bit is overwritten by transferring value
between kernel space and user space.

This can be happened with kernel 3.0.0-rc2 (Also older kernel)
on x86_64.

# This issue is already on Bugzilla,
  does anybody know this current status?
https://bugzilla.kernel.org/show_bug.cgi?id=23732

Reproduce steps are as follows:
# System time is set to UTC.

# mount -t ext4 /dev/sda8 /mnt/mp1

# touch -t 203801190314.08 /mnt/mp1/FILE

# umount /mnt/mp1
# mount -t ext4 /dev/sda8 /mnt/mp1

# stat /mnt/mp1/FILE
  File: `/mnt/mp1/FILE'
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 808h/2056d	Inode: 12          Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1901-12-13 20:45:52.000000000 +0000       <-----
Modify: 1901-12-13 20:45:52.000000000 +0000       <-----
Change: 2011-06-10 03:57:39.595385951 +0100
 Birth: -

Regards,
Akira Fujita


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-07-08 17:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-10  8:27 [BUG] ext4 timestamps corruption Akira Fujita
2011-06-11 16:48 ` Andreas Dilger
2011-06-23  7:52   ` Akira Fujita
2011-06-23 22:37     ` Mark Harris
2011-06-24 22:46       ` Andreas Dilger
2011-06-25  5:12         ` Mark Harris
2011-06-27  9:04           ` Andreas Dilger
2011-07-05 10:51             ` Akira Fujita
2011-07-08 17:06               ` Mark Harris
2011-06-24 15:04     ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox