Re: [patch 18/39] remap_file_pages protection support: add VM_FAULT_SIGSEGV

2005-08-26 Thread Blaisorblade
On Monday 15 August 2005 12:15, Russell King wrote: > On Mon, Aug 15, 2005 at 08:12:54PM +1000, Nick Piggin wrote: > > Well there is now, and that is we are now using a bit in the 2nd > > byte as flags. So I had to do away with -ve numbers there entirely. > > You could achieve a similar thing by u

Re: [patch 18/39] remap_file_pages protection support: add VM_FAULT_SIGSEGV

2005-08-15 Thread Russell King
On Mon, Aug 15, 2005 at 11:15:48AM +0100, Russell King wrote: > On Mon, Aug 15, 2005 at 08:12:54PM +1000, Nick Piggin wrote: > > Well there is now, and that is we are now using a bit in the 2nd > > byte as flags. So I had to do away with -ve numbers there entirely. > > > > You could achieve a simi

Re: [patch 18/39] remap_file_pages protection support: add VM_FAULT_SIGSEGV

2005-08-15 Thread Russell King
On Mon, Aug 15, 2005 at 08:12:54PM +1000, Nick Piggin wrote: > Well there is now, and that is we are now using a bit in the 2nd > byte as flags. So I had to do away with -ve numbers there entirely. > > You could achieve a similar thing by using another bit in that byte > #define VM_FAULT_FAILED 0x

Re: [patch 18/39] remap_file_pages protection support: add VM_FAULT_SIGSEGV

2005-08-15 Thread Nick Piggin
Russell King wrote: On Fri, Aug 12, 2005 at 08:21:45PM +0200, [EMAIL PROTECTED] wrote: @@ -632,10 +632,11 @@ static inline int page_mapped(struct pag * Used to decide whether a process gets delivered SIGBUS or * just gets major/minor fault counters bumped up. */ -#define VM_FAULT_OOM (-1)

Re: [patch 18/39] remap_file_pages protection support: add VM_FAULT_SIGSEGV

2005-08-15 Thread Russell King
On Fri, Aug 12, 2005 at 08:21:45PM +0200, [EMAIL PROTECTED] wrote: > @@ -632,10 +632,11 @@ static inline int page_mapped(struct pag > * Used to decide whether a process gets delivered SIGBUS or > * just gets major/minor fault counters bumped up. > */ > -#define VM_FAULT_OOM (-1) > -#define VM

[patch 18/39] remap_file_pages protection support: add VM_FAULT_SIGSEGV

2005-08-12 Thread blaisorblade
From: Ingo Molnar <[EMAIL PROTECTED]> Since with remap_file_pages w/prot we may put PROT_NONE on a single PTE rather than a VMA, we must handle that inside handle_mm_fault. This value must be handled in the arch-specific fault handlers, and this change must be ported to every arch on the world;