mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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
This commit is contained in:
committed by
Peter Zijlstra
parent
094cc7bb5f
commit
e6eb9acc02
@@ -214,11 +214,11 @@ void arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr,
|
||||
unsigned long kaddr, kstart;
|
||||
|
||||
/* Initialize the slot */
|
||||
kaddr = (unsigned long)kmap_atomic(page);
|
||||
kaddr = (unsigned long)kmap_local_page(page);
|
||||
kstart = kaddr + (vaddr & ~PAGE_MASK);
|
||||
memcpy((void *)kstart, src, len);
|
||||
flush_icache_range(kstart, kstart + len);
|
||||
kunmap_atomic((void *)kaddr);
|
||||
kunmap_local((void *)kaddr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user