Re: bug in generic strncpy_from_user
From: Linus Torvalds
Date: Tue Feb 26 2013 - 19:30:57 EST
On Tue, Feb 26, 2013 at 3:43 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> So I'll need to extend on that logic a bit more.
Ok, here's the fleshed-out patch. Also fixed to use "expand_stack()",
which is what the page fault handling actually uses. And it has the
GROWSUP case as well as a comment about this all.
So it all looks good. But it's still totally and entirely untested.
Because that's how I roll. Gangsta life!
Linus
Attachment:
patch.diff
Description: Binary data