[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LFD.1.10.0807280848520.3486@nehalem.linux-foundation.org>
Date: Mon, 28 Jul 2008 08:50:12 -0700 (PDT)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Vitaly Mayatskikh <v.mayatskih@...il.com>
cc: linux-kernel@...r.kernel.org, Andi Kleen <andi@...stfloor.org>,
Ingo Molnar <mingo@...e.hu>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists