Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



On Tue, Mar 23, 2010 at 04:24:06PM +0000, David Holland wrote:
> On Sat, Mar 20, 2010 at 11:31:31PM +0000, Chuck Silvers wrote:
>  > fix copy{in,out}{,str}() to return the error returned by uvm_fault().
>  > fixes PR 41813.
> 
> Do you know if/how this will affect PR 11904? What happens now on EIO
> in a memory-mapped file?

this change doesn't affect application mappings, only kernel mappings.
the user-mode equivalent of the kernel-mode pcb_onfault stuff is
to install a signal handler for SIGSEGV, as you described in the PR.

hmm, there's an si_errno field in struct siginfo, but it looks like
we currently only use it for emulations... we could put the errno
returned from uvm_fault() in there too so that applications could
print a more specific error message.

-Chuck


Home | Main Index | Thread Index | Old Index