Re: [PATCH v1] uprobes: use pagesize-aligned virtual address when replacing pages
From: Oleg Nesterov
Date: Mon Jan 15 2024 - 09:26:57 EST
On 01/15, David Hildenbrand wrote:
>
> --- a/kernel/events/uprobes.c
> +++ b/kernel/events/uprobes.c
> @@ -537,7 +537,7 @@ int uprobe_write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm,
> }
> }
>
> - ret = __replace_page(vma, vaddr, old_page, new_page);
> + ret = __replace_page(vma, vaddr & PAGE_MASK, old_page, new_page);
Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>