VM problem...
Pawel Jakub Dawidek
nick at garage.freebsd.pl
Mon Jul 21 15:47:20 PDT 2003
On Mon, Jul 21, 2003 at 08:51:19PM +0100, Bruce M Simpson wrote:
Matt, Bruce, thanks!
I've track it down.
Yes, those read-only pages was reused. So now I'm putting them on list
before syscall is called, and after syscall is executed I free memory
for non-execve syscalls and mark entries from list as VM_PROT_ALL for
execve(). I'll play in the future with vm_map_delete() maybe those
pages are removable in safe way.
But why memory allocator, that is responsible for finding pages for
stack don't check their permissions?
--
Pawel Jakub Dawidek pawel at dawidek.net
UNIX Systems Programmer/Administrator http://garage.freebsd.pl
Am I Evil? Yes, I Am! http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030722/322266a9/attachment.bin
More information about the freebsd-hackers
mailing list