]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: fix possible fault in ecryptfs_sync_page
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 31 Aug 2007 06:56:33 +0000 (23:56 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 31 Aug 2007 08:42:23 +0000 (01:42 -0700)
commit82f0d9ca711a1b73085bbd54b46a971ebcbd96a2
tree93cdb60d5e48d1f92a974b905ddcf7ee8072dbeb
parentc16a8b31f30a82994f20cd3ae92a486c6d25ae96
eCryptfs: fix possible fault in ecryptfs_sync_page

This will avoid a possible fault in ecryptfs_sync_page().

In the function, eCryptfs calls sync_page() method of a lower filesystem
without checking its existence.  However, there are many filesystems that
don't have this method including network filesystems such as NFS, AFS, and
so forth.  They may fail when an eCryptfs page is waiting for lock.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/mmap.c