Re: [PATCH] x86: Set clear flag in copy_from_user/copy_to_user
From: Linus Torvalds
Date: Mon Jul 28 2008 - 11:54:20 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/