stat mtime on encrypted fs doesn't match between calls

Bug #613873 reported by Guillermo Gonzalez on 2010-08-05
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
eCryptfs
Medium
Tyler Hicks

Bug Description

steps to reproduce:

guillermo@naug:~/Private$ date > bar
guillermo@naug:~/Private$ stat bar
  File: `bar'
  Size: 29 Blocks: 24 IO Block: 4096 regular file
Device: 15h/21d Inode: 1846747 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/guillermo) Gid: ( 1000/guillermo)
Access: 2010-08-05 11:14:40.896464546 -0300
Modify: 2010-08-05 11:14:40.000000000 -0300
Change: 2010-08-05 11:14:40.000000000 -0300
guillermo@naug:~/Private$ chmod 0666 bar
guillermo@naug:~/Private$ stat bar
  File: `bar'
  Size: 29 Blocks: 24 IO Block: 4096 regular file
Device: 15h/21d Inode: 1846747 Links: 1
Access: (0666/-rw-rw-rw-) Uid: ( 1000/guillermo) Gid: ( 1000/guillermo)
Access: 2010-08-05 11:14:40.896464546 -0300
Modify: 2010-08-05 11:14:40.900454307 -0300
Change: 2010-08-05 11:14:47.672508525 -0300
guillermo@naug:~/Private$

Tyler Hicks (tyhicks) wrote :

Verified on 2.6.35

Changed in ecryptfs:
assignee: nobody → Tyler Hicks (tyhicks)
importance: Undecided → Medium
status: New → Confirmed
Guillermo Gonzalez (verterok) wrote :

This is on Ubuntu 10.04, kernel 2.6.32-24-generic and ext4 filesystem

Tyler Hicks (tyhicks) wrote :

Looks to be specific to ext4's nanosecond timestamp feature.

Tyler Hicks (tyhicks) wrote :

Pushed a fix for this to git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6.git#next, marked it Cc: stable, and plan on getting it into 2.6.38-rc6.

Changed in ecryptfs:
status: Confirmed → Fix Committed
Tyler Hicks (tyhicks) wrote :
tags: added: kernel
Guillermo Gonzalez (verterok) wrote :

Cool, thanks!

Tyler Hicks (tyhicks) wrote :

Linus pulled this fix in before releasing 2.6.38-rc6 and I received a note from gregkh that it was applied to the 2.6.37-stable tree.

Changed in ecryptfs:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers