[lkml]   [1998]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: copy_from_user() fixu
H. Peter Anvin writes:
> > maybe... I don't know enough about either standard to comment.
> >
> > I do understand what you are saying about syscall/libc transparency
> > and for the most part agree - but I do like getting EFAULT instead of
> > a coredump in some applications, mainly because I can write code to
> > recover from this more elegantly that a coredump.
> >
> > And before you say, I shouldn't get EFAULT, wrong. I do get them.
> >
> > Oh hang, no I don't, I forgot. My code if perfect. Silly me thinking
> > I might code the odd error...
> All I'm saying is that if you're relying on EFAULT rather than SIGSEGV
> or vice versa, your code is completely, utterly, and fundamentally
> broken.

Ignoring Unix98, maybe what you say is true. Nevertheless, there is no
justification for changing the existing default behaviour.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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