[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: false asumption or security flaw? (fwd)
> the reson why the program will not dump is becuase it is done by a 4k
> page system and the page has not been freed by the proggram because it
> probably has something else in it and then the same page will not be
> alloced to another process
>
> somebody please correct me if i am wrong :)
That's right. Memory protection is always page-grained (4kB).
And there's only one reliable, transparent, and low-overhead
mechanism to control the access to memory pages: the one
implemented in the MMU of the CPU.
If you want to cause a seg-fault, you have to do:
int *ip; ip = 0; *ip = 0; /* :-) */
This works because the zero-page is write-protected (to
catch exactly these null-pointer reference errors).
Have fun.
Thomas.
Kernel-audit: discussion list for security and the linux kernel
Archive: http://mail.nl.linux.org/kernel-audit/