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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 0x20
> and make that bit present in VM_FAULT_OOM and VM_FAULT_SIGBUS, then
> do an unlikely test for that bit in your handler and branch away to
> the slow path.

That'll do as well, thanks.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux