Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm/uprobes: use kmap_local_page() in arch_uprobe_copy_ixol()

Replace deprecated kmap_atomic() with kmap_local_page().

Signed-off-by: Keke Ming <ming.jvle@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Link: https://patch.msgid.link/20260103084243.195125-5-ming.jvle@gmail.com

authored by

Keke Ming and committed by
Peter Zijlstra
1752a1ad e6eb9acc

+2 -2
+2 -2
arch/arm/probes/uprobes/core.c
··· 113 113 void arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, 114 114 void *src, unsigned long len) 115 115 { 116 - void *xol_page_kaddr = kmap_atomic(page); 116 + void *xol_page_kaddr = kmap_local_page(page); 117 117 void *dst = xol_page_kaddr + (vaddr & ~PAGE_MASK); 118 118 119 119 preempt_disable(); ··· 126 126 127 127 preempt_enable(); 128 128 129 - kunmap_atomic(xol_page_kaddr); 129 + kunmap_local(xol_page_kaddr); 130 130 } 131 131 132 132