Commit f7e1ad1a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

fs/binfmt_misc.c: use GFP_KERNEL instead of GFP_USER

GFP_USER means "honour cpuset nodes-allowed beancounting".  These are
regular old kernel objects and there seems no reason to give them this
treatment.
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e6084d4a
...@@ -308,7 +308,7 @@ static Node *create_entry(const char __user *buffer, size_t count) ...@@ -308,7 +308,7 @@ static Node *create_entry(const char __user *buffer, size_t count)
err = -ENOMEM; err = -ENOMEM;
memsize = sizeof(Node) + count + 8; memsize = sizeof(Node) + count + 8;
e = kmalloc(memsize, GFP_USER); e = kmalloc(memsize, GFP_KERNEL);
if (!e) if (!e)
goto out; goto out;
...@@ -416,7 +416,7 @@ static Node *create_entry(const char __user *buffer, size_t count) ...@@ -416,7 +416,7 @@ static Node *create_entry(const char __user *buffer, size_t count)
if (e->mask) { if (e->mask) {
int i; int i;
char *masked = kmalloc(e->size, GFP_USER); char *masked = kmalloc(e->size, GFP_KERNEL);
print_hex_dump_bytes( print_hex_dump_bytes(
KBUILD_MODNAME ": register: mask[decoded]: ", KBUILD_MODNAME ": register: mask[decoded]: ",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment