Re: copy_from_user() fixu

Kurt Garloff (garloff@kg1.ping.de)
Tue, 25 Aug 1998 11:26:18 +0200


On Tue, Aug 25, 1998 at 12:49:25AM -0700, H. Peter Anvin wrote:
> > H. Peter Anvin writes:
> > > >
> > > > 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.
> >
> > Why not insult me further while you're at it?
>
> You claimed you have a library that's bug-free, and you're relying on
> undefined behaviour. Clearly, your definition of "bug-free" is
> something different than us "lesser beings" use.

If I correctly understand what is happening, the lib does check for EFAULT
and does handle it nicely. No more and no less. Nothing's broken about this.
If the kernel prefers to raise SIGSEGV, no problem. We don't have the nice
handling for that, but who cares? The functionality of the lib is not
dependent on EFAULT ...

Go on fighting, if you prefer, I won't take place in your struggle.

-- 
Kurt Garloff, Dortmund 
<K.Garloff@ping.de>
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff

- 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