lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070109220940.GA16978@amelek.gda.pl>
Date:	Tue, 9 Jan 2007 23:09:40 +0100
From:	Marek Michalkiewicz <marekm@...lek.gda.pl>
To:	linux-kernel@...r.kernel.org
Cc:	staubach@...hat.com
Subject: mmap / mtime updates

Hello,

What is the current status of the bug where modifications to file
contents made via mmap fail to update mtime of the file?

This was discussed a few months ago in this thread:

http://lkml.org/lkml/2006/5/17/138

where patches have been posted, but it seems that no final solution
has been agreed on and applied to the kernel tree.  Updating ctime
and mtime appears to be required by the standard:

  http://www.opengroup.org/onlinepubs/009695399/functions/mmap.html

  The st_ctime and st_mtime fields of a file that is mapped with
  MAP_SHARED and PROT_WRITE shall be marked for update at some point
  in the interval between a write reference to the mapped region and
  the next call to msync() with MS_ASYNC or MS_SYNC for that portion
  of the file by any process.

and failing to do it can lead to potential data loss as well, if
modified files are not backed up (I'm seeing the problem with Samba
tdb files not being backed up by rsnapshot, for example).

Thanks,
Marek
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ