Re: [PATCH] fs/proc/kcore.c: Omit kernel text area for hardened usercopy feature

From: Linus Torvalds
Date: Wed Sep 07 2016 - 18:52:42 EST


On Wed, Sep 7, 2016 at 2:24 PM, Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
>
> I'll give this more testing, but it looks ok so far,

Looks fine to me.

I'd perhaps suggest using a simpler interface than
"__get_free_pages(GFP_KERNEL, 0);".

If nothing else, just drop the "order" argument and use
"__get_free_page()", but maybe even just doing "kmalloc/kfree".

Linus