Re: [PATCH 2/2] Perform check in iov_iter_fault_in_readable() by check_readable_bytes()

From: Jamie Lokier
Date: Mon May 18 2009 - 05:53:22 EST


Alan Cox wrote:
> > System calls don't trigger SIGSEGVs so they can't rely on that when
> > calling read(). I'm not sure how they handle that.
>
> Usually by touching the pages before the syscall.

Makes sense.

> (You can't rely on -EFAULT either in POSIX, its optional that it
> bothers to tell you and for example on MMUless it may well not)

On MMUless you wouldn't use page protection as a GC technique :-)
Is EFAULT really optional on systems with page protection?

-- Jamie
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/