Messages in this thread | | | Date | Thu, 12 Jan 2012 17:09:59 +0800 | From | Li Zefan <> | Subject | Re: [PATCH] mm: Don't warn if memdup_user fails |
| |
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.
| |