lkml.org 
[lkml]   [2008]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-07-28 17:57    [W:0.049 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site