Re: [PATCH] uprobes: use vm_special_mapping close() functionality
From: Oleg Nesterov
Date: Tue Sep 03 2024 - 15:33:04 EST
On 09/03, Linus Torvalds wrote:
>
> On Tue, 3 Sept 2024 at 02:09, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
> >
> > but with or without this fix __create_xol_area() also needs
> >
> > area->xol_mapping.mremap = NULL;
>
> I think the whole thing needs to be zeroed out.
Agreed,
> Either use kzalloc(),
This is what Sven did in
[PATCH] uprobes: use kzalloc to allocate xol area
https://lore.kernel.org/all/20240903102313.3402529-1-svens@xxxxxxxxxxxxx/
Oleg.