On Mon, Sep 29, 2003 at 06:56:13PM +0300, Peter Pentchev wrote: +> I mean, won't the application's memory manager attempt to allocate the +> next chunk of memory right over the region that you have stolen with +> this brk(2) invocation? Thus, when the application tries to write into +> its newly-allocated memory, it will overwrite the data that the kernel +> has placed there, and any attempt to access the kernel's data later will +> fail in wonderfully unpredictable ways :)
I'm not sure if newly allocated memory will overwrite memory allocated in kernel, but for sure process is able to write to this memory. Sometime ago I proposed model which will allow to remove all copyin(9) calls and many copyout(9), but I'm not so skilled in VM to implement it. -- Pawel Jakub Dawidek [EMAIL PROTECTED] UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net
pgp00000.pgp
Description: PGP signature