Re: mprotect(PROT_NONE) doesn't prevent reading/writing on 2.6.14 Au1550

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

 



On Mon, 2005-12-12 at 16:34 -0500, Clem Taylor wrote:
> Hi,
> 
> It seems that mprotect(PROT_NONE) isn't actually doing anything on my
> 2.6.14 au1550 system.
> 
> Attached is a simple test that allocates 64K (64K aligned),
> reads/writes the buffer, mprotect(PROT_NONE) the buffer and then
> attempts to read and write to the buffer a second time. I expected
> that writing to a PROT_NONE page would result in a segfault, but on
> the Au1550 the program runs without faulting. Running the same code on
> x86 (2.6.13) segfaults as expected.
> 
> Is there some reason why mprotect() wouldn't work on the Au1550, or is
> this a bug?

Do you have another MIPS system you can test this on?

Pete



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux