Re: AUDIT: copy_from_user is a deathtrap.

Linus Torvalds
2002-05-19T03:34:07Z

On Sun, 19 May 2002, Rusty Russell wrote:
>
> Um, what about delivering a SIGSEGV? So, copy_to/from_user always
> returns 0, but a signal is delivered.

That doesn't help. It's against some stupid SUS rule, I'm afraid.

(And THAT is a stupid rule, I 100% agree with. It means that some things
return -EFAULT, and other things do SIGSEGV, and the only difference is
whether something is a system call or is implemented as a library thing.
UNIX should always just have segfaulted, but there you are..)

Linus