Re: [PATCH 1/7] revoke: special mmap handling

2007-03-12 Thread Pekka J Enberg
Hi Honza, On Mon, 12 Mar 2007, Jan Kara wrote: > > +#define VM_REVOKED 0x0400 /* Mapping has been revoked */ > > + > Is it intended to conflict with VM_ALWAYSDUMP? I'd guess not and if > yes, it definitely deserves a comment... Peter Zijlstra spotted this also and it has been fixed in

Re: [PATCH 1/7] revoke: special mmap handling

2007-03-12 Thread Jan Kara
Hi, > This adds special handling for revoked memory mappings. We want to > raise SIGBUS when accessing revoked mappings and return ENODEV when > trying to remap with mmap(2). > > Signed-off-by: Pekka Enberg <[EMAIL PROTECTED]> > --- > include/linux/mm.h |2 ++ > mm/memory.c|3

Re: [PATCH 1/7] revoke: special mmap handling

2007-03-09 Thread Alan Cox
On Fri, 9 Mar 2007 10:14:09 +0200 (EET) Pekka J Enberg <[EMAIL PROTECTED]> wrote: > From: Pekka Enberg <[EMAIL PROTECTED]> > > This adds special handling for revoked memory mappings. We want to > raise SIGBUS when accessing revoked mappings and return ENODEV when > trying to remap with mmap(2).

[PATCH 1/7] revoke: special mmap handling

2007-03-09 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> This adds special handling for revoked memory mappings. We want to raise SIGBUS when accessing revoked mappings and return ENODEV when trying to remap with mmap(2). Signed-off-by: Pekka Enberg <[EMAIL PROTECTED]> --- include/linux/mm.h |2 ++ mm/memory