Revert "uprobes: Use kzalloc to allocate xol area"

This reverts commit 9a18ce1f12.
This commit is contained in:
Ksawlii 2024-11-24 00:23:37 +01:00
parent afebebc45a
commit d5a08b5325

View file

@ -1485,7 +1485,7 @@ static struct xol_area *__create_xol_area(unsigned long vaddr)
uprobe_opcode_t insn = UPROBE_SWBP_INSN;
struct xol_area *area;
area = kzalloc(sizeof(*area), GFP_KERNEL);
area = kmalloc(sizeof(*area), GFP_KERNEL);
if (unlikely(!area))
goto out;
@ -1495,6 +1495,7 @@ 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])