[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
patches for PR 41813 - Real EIO being returned to userland as EFAULT
I've put a diff with fixes for this problem on all the platforms for which
it exists in ftp://ftp.netbsd.org/pub/NetBSD/misc/chs/onfault/diff.onfault.*.
I've tested it on these platforms:
. mips (pmax)
. powerpc/ibm4xx (explora)
. sh3 (hpcsh)
but there are a bunch of others (mostly m68k) that could use a test.
a few platforms needed no changes (x86, arm, powerpc/oea).
I tested using the diff.onfault-debug.* patch in the same directory,
following these steps on a kernel with both patches applied:
<change chuq_uf to 1 using ddb or the mychroot.c hack if the platform
doesn't have a way to enter ddb from the console.>
<see that cat shows ECHILD as the error.>
<see that reboot also fails with ECHILD.>
<change chuq_uf back to 0.>
<see that cat works>
<see that reboot works>
there are also two more test programs in that directory
that exercise various error cases for copyinstr() and copyoutstr().
I'll commit all this in a few days if no one finds anything wrong.
Main Index |
Thread Index |