Re: Someone needs to fix pagefault handling

[email protected] (Christos Zoulas) Wed, 4 Mar 2015 22:54:35 +0000 (UTC)
Newsgroups gmane.os.netbsd.ports.powerpc
Message-ID <[email protected]>
In article <[email protected]>,
Martin Husemann  <[email protected]> wrote:
>Hi folks,
>
>Christos recently fixed a standards compliance issue, pagefault() can now
>return EINVAL which means we should send SIGBUS to userland.

Minor correction: uvm_fault() always returned EINVAL but that fell in
the else part of ENOMEM, so we returned SEGV which is wrong for mmap
> PAGESIZE past EOF.

christos