lkml.org 
[lkml]   [1998]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: copy_from_user() fix
Hi!

> > Also, I still maintain there should be a mode to raise SIGSEGV
> > whenever a system call returns EFAULT. Not doing so breaks the system
> > call/library routine transparency, and lets bugs go uncaught.
>
> 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)...

Pavel
--
I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

-
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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.158 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site