Mike Frysinger <vap...@gentoo.org> wrote:

> -                     len -= copy_to_user((void *) addr, buf, len);
> +                     copy_to_user_page(vma, NULL, NULL,
> +                                       (void *) addr, buf, len);
>               else if (!write && vma->vm_flags & VM_MAYREAD)
> -                     len -= copy_from_user(buf, (void *) addr, len);
> +                     copy_from_user_page(vma, NULL, NULL,
> +                                         buf, (void *) addr, len);

Hmmm...  With this, len isn't updated anymore, and so it alters the return
value of access_process_vm(), and means ptrace_readdata() won't now return
-EIO under some circumstances where it used to.  I'm not sure that matters,
though.

David
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to