eCryptfs fixes for 4.7-rc7:

- Provide a more concise fix for CVE-2016-1583
  + Additionally fixes linux-stable regressions caused by the cherry-picking of
    the original fix
- Some very minor changes that have queued up
  + Fix typos in code comments
  + Remove unnecessary check for NULL before destroying kmem_cache
ecryptfs: don't allow mmap when the lower fs doesn't support it

There are legitimate reasons to disallow mmap on certain files, notably
in sysfs or procfs.  We shouldn't emulate mmap support on file systems
that don't offer support natively.


Signed-off-by: Jeff Mahoney <>
[tyhicks: clean up f_op check by using ecryptfs_file_to_lower()]
Signed-off-by: Tyler Hicks <>
1 file changed