projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25dfc9e
)
uprobes: Use kzalloc to allocate xol area
author
Sven Schnelle
<svens@linux.ibm.com>
Tue, 3 Sep 2024 10:23:12 +0000
(12:23 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Tue, 3 Sep 2024 14:54:02 +0000
(16:54 +0200)
To prevent unitialized members, use kzalloc to allocate
the xol area.
Fixes:
b059a453b1cf1
("x86/vdso: Add mremap hook to vm_special_mapping")
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Link:
https://lore.kernel.org/r/20240903102313.3402529-1-svens@linux.ibm.com
kernel/events/uprobes.c
patch
|
blob
|
history
diff --git
a/kernel/events/uprobes.c
b/kernel/events/uprobes.c
index
73cc477
..
50d7949
100644
(file)
--- a/
kernel/events/uprobes.c
+++ b/
kernel/events/uprobes.c
@@
-1489,7
+1489,7
@@
static struct xol_area *__create_xol_area(unsigned long vaddr)
struct xol_area *area;
void *insns;
- area = k
m
alloc(sizeof(*area), GFP_KERNEL);
+ area = k
z
alloc(sizeof(*area), GFP_KERNEL);
if (unlikely(!area))
goto out;
@@
-1499,7
+1499,6
@@
static struct xol_area *__create_xol_area(unsigned long vaddr)
goto free_area;
area->xol_mapping.name = "[uprobes]";
- area->xol_mapping.fault = NULL;
area->xol_mapping.pages = area->pages;
area->pages[0] = alloc_page(GFP_HIGHUSER);
if (!area->pages[0])