Message ID | 20210520080858.25450-1-nglaive@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm: fix unaccounted time namespace objects | expand |
diff --git a/kernel/time/namespace.c b/kernel/time/namespace.c index afc65e6be..00c20f7fd 100644 --- a/kernel/time/namespace.c +++ b/kernel/time/namespace.c @@ -88,13 +88,13 @@ static struct time_namespace *clone_time_ns(struct user_namespace *user_ns, goto fail; err = -ENOMEM; - ns = kmalloc(sizeof(*ns), GFP_KERNEL); + ns = kmalloc(sizeof(*ns), GFP_KERNEL_ACCOUNT); if (!ns) goto fail_dec; kref_init(&ns->kref); - ns->vvar_page = alloc_page(GFP_KERNEL | __GFP_ZERO); + ns->vvar_page = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO); if (!ns->vvar_page) goto fail_free;