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.

arm64/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-3-ming.jvle@gmail.com

authored by

Keke Ming and committed by
Peter Zijlstra
094cc7bb a18dfb5d

+2 -2
+2 -2
arch/arm64/kernel/probes/uprobes.c
··· 15 15 void arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, 16 16 void *src, unsigned long len) 17 17 { 18 - void *xol_page_kaddr = kmap_atomic(page); 18 + void *xol_page_kaddr = kmap_local_page(page); 19 19 void *dst = xol_page_kaddr + (vaddr & ~PAGE_MASK); 20 20 21 21 /* ··· 32 32 sync_icache_aliases((unsigned long)dst, (unsigned long)dst + len); 33 33 34 34 done: 35 - kunmap_atomic(xol_page_kaddr); 35 + kunmap_local(xol_page_kaddr); 36 36 } 37 37 38 38 unsigned long uprobe_get_swbp_addr(struct pt_regs *regs)