Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Dec 1998 12:28:38 +0300
From:      Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
To:        dg@root.com
Cc:        Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, freebsd-bugs@FreeBSD.ORG
Subject:   Re: mmap of large files 
Message-ID:  <199812020928.MAA19641@arc.hq.cti.ru>
In-Reply-To: Your message of "Tue, 01 Dec 1998 21:45:42 PST." <199812020545.VAA03985@root.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >Does the test
> >	if ((pos + size > (vm_offset_t)-PAGE_SIZE) ||
> >in the mmap syscall have any purpose, other than break mmap with 
> >pos > 4GB?
> 
>    I think the code is wrong. I think it should be (addr + size) and comparing
> against -PAGE_SIZE is probably also wrong - careful attention needs to be
> paid to rounding and overflow issues here. Needs more analysis.
> 

I think, vm_map_insert test for validity of (addr + size), no?

Dima



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812020928.MAA19641>