]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: uprobes: Flush icache via kernel address
authorJames Hogan <james.hogan@imgtec.com>
Thu, 1 Sep 2016 16:30:13 +0000 (17:30 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 4 Oct 2016 14:13:57 +0000 (16:13 +0200)
commitc3b1bf2b61cd63c7aad1e9f887e70bfc207168c5
treedfcda71fb7f0c1d293888cd0a6b76cc7f0a39111
parentef2cb79363a715581e570ca819ebc8191e855a0a
MIPS: uprobes: Flush icache via kernel address

Update arch_uprobe_copy_ixol() to use the kmap_atomic() based kernel
address to flush the icache with flush_icache_range(), rather than the
user mapping. We have the kernel mapping available anyway and this
avoids having to switch to using the new __flush_icache_user_range() for
the sake of Enhanced Virtual Addressing (EVA) where flush_icache_range()
will become ineffective on user addresses.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Leonid Yegoshin <leonid.yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14154/
Patchwork: https://patchwork.linux-mips.org/patch/14308/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/uprobes.c