fs/unionfs/file.c | 24 +++++++++++++++++++++---
fs/unionfs/mmap.c | 17 +++++++++++++++--
2 files changed, 36 insertions(+), 5 deletions(-)
New commits:
commit 6f2cb5297658b8ca048433bedb50eb21596fd846
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Wed May 23 21:27:58 2007 -0400
bugfix: prevent a NULL ptr deref if branch is nfs and using mmap writes
By some strange condition, the VFS can pass our unionfs_writepage a
writeback_control structure which, if passed as is to the lower ->writepage
-- here nfs_writepage, triggers a NULL ptr deref in NFS. This fix works
around this issue, and results in a successfully written mmaped file.
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
commit 6bb5ebb6343e4772279a3d22eeb4659ee7903bc7
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Wed May 23 21:26:01 2007 -0400
bugfix: handle lower file systems that do not support writeable mappings
File systems such as jffs2 (tested in 2.6.22-rc22) do not have a
->writepage. Make sure unionfs detects that conditions and returns EINVAL
when a user tries to mmap such a file with VM_WRITE.
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs