From owner-freebsd-hackers Fri Oct 19 0:26:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36]) by hub.freebsd.org (Postfix) with ESMTP id 7C70037B405 for ; Fri, 19 Oct 2001 00:26:31 -0700 (PDT) Received: from m5.gw.fujitsu.co.jp by fgwmail6.fujitsu.co.jp (8.9.3/3.7W-MX0109-Fujitsu Gateway) id QAA16086 for ; Fri, 19 Oct 2001 16:26:29 +0900 (JST) (envelope-from kaneshige.kenji@jp.fujitsu.com) Received: from sxodm.sxo.nm.fujitsu.co.jp by m5.gw.fujitsu.co.jp (8.9.3/3.7W-0110-Fujitsu Domain Master) id QAA22808 for ; Fri, 19 Oct 2001 16:26:29 +0900 (envelope-from kaneshige.kenji@jp.fujitsu.com) Received: from jp.fujitsu.com by sxodm.sxo.nm.fujitsu.co.jp (8.9.3/3.7W) id QAA16774; Fri, 19 Oct 2001 16:26:28 +0900 (JST) Message-ID: <3BCFD592.1090607@jp.fujitsu.com> Date: Fri, 19 Oct 2001 16:26:10 +0900 From: Kenji Kaneshige User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: ja MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: question about mmap() on FreeBSD3.3 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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