NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/48910: msync(2) should return ENOMEM on unmapped pages per POSIX; test criteria in t_msync incorrect
The following reply was made to PR kern/48910; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/48910: msync(2) should return ENOMEM on unmapped pages per
POSIX; test criteria in t_msync incorrect
Date: Wed, 18 Jun 2014 03:05:01 +0000
On Tue, Jun 17, 2014 at 09:35:00PM +0000, Garrett Cooper wrote:
> Looking around that file and then studying the NetBSD/POSIX manpages a
> bit, mmap seems suspicious because it relies on the range_check static
> function for checking the range of the pages and range_check returns
> EFBIG for mmap which isn't documented in mmap(2) for NetBSD (and it's
> not in POSIX either). I'm not 100% clued into NetBSD kernel internals
> (only FreeBSD) so I need some help here -- does EFBIG get punted back
> to userland as EFAULT?
It does not; that sounds broken.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index