Re: [PATCH] mm: Don't warn if memdup_user fails

Li Zefan
2012-01-12T09:07:43Z

Pekka Enberg wrote:
> On Thu, Jan 12, 2012 at 8:43 AM, Pekka Enberg <penberg@kernel.org> wrote:
>> Sasha, I suppose strndup_user() has the same kind of issue?
>
> Oh, it uses memdup_user() internally. Sorry for the noise.
>

Before memdup_user() was introduced, strndup_user() called kmalloc()
directly, without specifying __GFP_NOWARN.