From 20c226590b17e729511458529734675887a25c91 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Mon, 6 Nov 2023 14:55:33 +0100 Subject: [PATCH] percpu: cleanup percpu page upon allocation Signed-off-by: Pawel Wieczorkiewicz --- common/percpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/percpu.c b/common/percpu.c index f933746b..c77d0935 100644 --- a/common/percpu.c +++ b/common/percpu.c @@ -27,6 +27,7 @@ #include #include #include +#include #include @@ -51,6 +52,7 @@ percpu_t *get_percpu_page(unsigned int cpu) { */ percpu = get_free_page(GFP_IDENT | GFP_KERNEL | GFP_USER); BUG_ON(!percpu); + memset(percpu, 0, PAGE_SIZE); percpu->cpu_id = cpu;