lkml.org 
[lkml]   [1998]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: copy_from_user() fixu
Date
> 
> Well, being serious here, I have a library that is bug-free, but I
> can't depend on application writers to sustain my level of
> perfection. So, so help these lesser beings, I trap EFAULT in my
> library and yield a more meaningful diagnostic than a mere EFAULT or
> SEGV.
>

Now you *really* convinced me that you're crazy.

Once again: if you're relying on EFAULT rather than SIGSEGV, your code
is broken, as you're relying on details of the libc/kernel interface.
I would argue that *IS* a bug in your "bug-free" library.

If you want to trap errors, you either have to sanitize the input, or
trap SIGSEGV.

-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

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