Re: AUDIT: copy_from_user is a deathtrap.

From: David S. Miller (davem@redhat.com)
Date: Fri May 17 2002 - 04:35:06 EST


   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/



This archive was generated by hypermail 2b29 : Thu May 23 2002 - 22:00:13 EST