Date: Fri, 19 Oct 2001 16:26:10 +0900 From: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> To: freebsd-hackers@freebsd.org Subject: question about mmap() on FreeBSD3.3 Message-ID: <3BCFD592.1090607@jp.fujitsu.com>
next in thread | raw e-mail | index | archive | help
Hello I have a question about the behavior of mmap() in the kernel built without VM_STACK option. The platform is FreeBSD3.3. When the area allocated by mmap() overlaps the area between vm_maxsaddr and USRSTACK, accessing the overlapped area causes Segmentation Fault, although mmap() is returned successfully. Is this a bug or the intended behavior? Looking through the source code, what happens seems: When grow() is called by the page fault handler trap_pfault(), grow() failes to grow a user stack area because virtual address space has already been taken by mmap(). ----- Kenji Kaneshige kaneshige.kenji@jp.fujitsu.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BCFD592.1090607>