diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2013-05-13 17:40:01 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2013-05-13 17:40:01 +0200 |
commit | 21811b3ae17ec705327484c1ce0be75fec95bb0e (patch) | |
tree | 22025ad077d5702483a8c8d5c6900773a140bb2f /Makefile.am | |
parent | 6b12c3d7b33c87a7fea228106f39ecf2a3e0f310 (diff) |
metadata: Be more resistive to broken journal files
In shared NFS homedir case with multiple clients writing to the same
mmaped journal file data can get easily corrupted. The daemon iterates
over a journal file on flush taking in account variable entry size and
advances according to the data read.
However in certain case invalid data are read making us to jump out of
bounds. In case of zero entry size we would stand at the same place
leading to infinite loop.
This patch checks if the indicated entry size is at least the size of
the structure we're getting the size from (it's a first element) and breaks
the iteration cycle if it's not. This may lead to partial data loss on flush
as we don't process the rest of the journal file. Old data from existing
tree file will be preserved of course, only few recent changes would get lost.
https://bugzilla.gnome.org/show_bug.cgi?id=637095
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions