Messages in this thread | | | Date | Mon, 28 Jul 2008 08:50:12 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [PATCH] x86: Set clear flag in copy_from_user/copy_to_user |
| |
On Mon, 28 Jul 2008, Vitaly Mayatskikh wrote: > > Only copy_to_user should clear the rest of uncopied area.
Copy *from* user should clear the kernel result buffer tail. Copying *to* user should do no such thing, and cannot do it anyway, since if we get a fault, it's going to be in that tail that caused a fault to begin with.
Linus
| |