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.

mips/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-4-ming.jvle@gmail.com

authored by

Keke Ming and committed by
Peter Zijlstra
e6eb9acc 094cc7bb

+2 -2
+2 -2
arch/mips/kernel/uprobes.c
··· 214 214 unsigned long kaddr, kstart; 215 215 216 216 /* Initialize the slot */ 217 - kaddr = (unsigned long)kmap_atomic(page); 217 + kaddr = (unsigned long)kmap_local_page(page); 218 218 kstart = kaddr + (vaddr & ~PAGE_MASK); 219 219 memcpy((void *)kstart, src, len); 220 220 flush_icache_range(kstart, kstart + len); 221 - kunmap_atomic((void *)kaddr); 221 + kunmap_local((void *)kaddr); 222 222 } 223 223 224 224 /**