Re: copy_from_user() fix

H. Peter Anvin (hpa@transmeta.com)
Mon, 24 Aug 1998 03:59:59 -0700 (PDT)


> > > Thats a matter for glibc. If you wrap the glibc syscall macros to do
> > > a raise(SIGSEGV) then you get your desire. So its a non kernel item ;)
> >
> > Still, I think that this could be in kernel. It is faster to do here
> > (you can SIGSEGV it directly from pagefault handler), and IMO you
> > _should_ get SIGSEGV for read(0,0,1)...
>
> Since when has SIGSEGV on a memory error been performance critical ?
>

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. Which of course doesn't mean it's
the *right* thing to do...

-hpa

-
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