APPLIED: [Lucid][SRU][PATCH 0/1] eCryptfs: Remove mmap from directory operations
Tim Gardner
rtg.canonical at gmail.com
Wed Feb 15 18:24:20 UTC 2012
On 02/15/2012 10:24 AM, Colin King wrote:
> 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(-)
>
>
--
Tim Gardner tim.gardner at canonical.com
More information about the kernel-team
mailing list