This is a note to let you know that I've just added the patch titled
eCryptfs: Check return of filemap_write_and_wait during fsync
to the 3.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ecryptfs-check-return-of-filemap_write_and_wait-during-fsync.patch
and it can be found in the queue-3.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From bc5abcf7e411b889f73ea2a90439071a0f451011 Mon Sep 17 00:00:00 2001
From: Tyler Hicks <[email protected]>
Date: Tue, 4 Jun 2013 10:24:56 -0700
Subject: eCryptfs: Check return of filemap_write_and_wait during fsync
From: Tyler Hicks <[email protected]>
commit bc5abcf7e411b889f73ea2a90439071a0f451011 upstream.
Error out of ecryptfs_fsync() if filemap_write_and_wait() fails.
Signed-off-by: Tyler Hicks <[email protected]>
Cc: Paul Taysom <[email protected]>
Cc: Olof Johansson <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
fs/ecryptfs/file.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
--- a/fs/ecryptfs/file.c
+++ b/fs/ecryptfs/file.c
@@ -294,7 +294,12 @@ static int ecryptfs_release(struct inode
static int
ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{
- filemap_write_and_wait(file->f_mapping);
+ int rc;
+
+ rc = filemap_write_and_wait(file->f_mapping);
+ if (rc)
+ return rc;
+
return vfs_fsync(ecryptfs_file_to_lower(file), datasync);
}
Patches currently in stable-queue which might be from [email protected] are
queue-3.9/ecryptfs-fixed-msync-to-flush-data.patch
queue-3.9/ecryptfs-check-return-of-filemap_write_and_wait-during-fsync.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html