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

From: Alan Cox
Date: Mon May 18 2009 - 04:31:30 EST


> 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. (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)

--
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/