https://github.com/torvalds/linux
Revision 32001d6fe9ac6b0423e674a3093aa56740849f3b authored by Tyler Hicks on 21 November 2011, 23:31:29 UTC, committed by Tyler Hicks on 23 November 2011, 21:40:09 UTC
Dirty pages weren't being written back when an mmap'ed eCryptfs file was
closed before the mapping was unmapped. Since f_ops->flush() is not
called by the munmap() path, the lower file was simply being released.
This patch flushes the eCryptfs file in the vm_ops->close() path.

https://launchpad.net/bugs/870326

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Cc: stable@kernel.org [2.6.39+]
1 parent b59db43
History
Tip revision: 32001d6fe9ac6b0423e674a3093aa56740849f3b authored by Tyler Hicks on 21 November 2011, 23:31:29 UTC
eCryptfs: Flush file in vma close
Tip revision: 32001d6
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 201.5 KB
Makefile -rw-r--r-- 52.2 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top