[Lucid][SRU][PATCH 0/1] eCryptfs: Remove mmap from directory operations
Colin King
colin.king at canonical.com
Wed Feb 15 17:24:28 UTC 2012
From: Colin Ian King <colin.king at canonical.com>
SRU Justification:
mmap() on a directory should return ENODEV, but on ecryptfs mmap() on Lucid
returns a mmap'd address which causes a SIGBUS when accessed.
Fix: Apply the backported patch, open a directory on an ecryptfs filesystem
and mmap with mmap(NULL, 4096, PROT_READ, MAP_PRIVATE, fd, 0). With the fix
this returns ENODEV, without it mmap returns a mmap'd region which causes a SIGBUS
when accessed.
BugLink: http://bugs.launchpad.net/bugs/400443
Colin Ian King (1):
eCryptfs: Remove mmap from directory operations
fs/ecryptfs/file.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
More information about the kernel-team
mailing list