Re: AUDIT: copy_from_user is a deathtrap.

David S. Miller (davem@redhat.com)
Fri, 17 May 2002 02:35:06 -0700 (PDT)


From: Rusty Russell <rusty@rustcorp.com.au>
Date: Fri, 17 May 2002 19:49:40 +1000

Sorry I wasn't clear: I'm saying *replace*, not add,

I don't understand what you are proposing then. There are some
instances that do want to know how many bytes did make it before
the -EFAULT event.

You have to add a new version of the interface to handle both
the case that cares about the length copied successfully and
the case that only cares about -EFAULT vs. !-EFAULT
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/