Re: copy_from_user() fix

Philip Blundell (pb@nexus.co.uk)
Mon, 24 Aug 1998 13:05:31 +0100


>It's not, but there is one argument for doing it in the kernel: it can
>be done in one single place (syscall return), whereas doing it in libc
>requires a large number of stubs.

No, it doesn't. Basically all glibc syscalls go through a single piece of
(source) code which is where the error checking and setting of errno is done
already. It wouldn't be hard to add a check for EFAULT and raise SIGSEGV
there if you wanted to do it.

p.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html