Re: make PROT_WRITE imply PROT_READ

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

 



Alan Cox <[email protected]> wrote:
> Ar Gwe, 2006-06-30 am 10:35 +0200, ysgrifennodd Arjan van de Ven:

>> apps like JVM's forgot PROT_EXEC and break when the hardware enforces it
>> apps that forget PROT_READ break when the kernel/hardware enforce it
>> 
>> not too much difference....
> 
> There is quite a difference. The _EXEC case behaves predictably for the
> platforms that support it. At least I am not aware of cases that is not
> true. The _READ case without the fault handling patch behaves

predictable on platforms that support it, but since you're testing on a
platform where it isn't fully supported, it behaves

> unpredictably depending on the precise ordering of events on a clean
> page.

You asked for a fault, and as long as the hardware supports it, you'll
get one (and you're supposed to). If the hardware doesn't support read
faults on mapped pages, you may not get all the read faults you want. The
proposed patch makes the situation worse by disabeling the _requested_
failures even in situations where it can be done.

-- 
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.

http://david.woodhou.se/why-not-spf.html
-
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]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux