提交 26852d5c 编写于 作者: R Ralf Baechle

Fix ptrace aliasing issue in copy_from_user_page / copy_to_user_page.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 505403b6
......@@ -55,11 +55,17 @@ extern void (*flush_icache_range)(unsigned long start, unsigned long end);
#define copy_to_user_page(vma, page, vaddr, dst, src, len) \
do { \
if (cpu_has_dc_aliases) \
flush_cache_page(vma, vaddr); \
memcpy(dst, (void *) src, len); \
flush_icache_page(vma, page); \
} while (0)
#define copy_from_user_page(vma, page, vaddr, dst, src, len) \
memcpy(dst, src, len)
do { \
if (cpu_has_dc_aliases) \
flush_cache_page(vma, vaddr); \
memcpy(dst, src, len); \
} while (0)
extern void (*flush_cache_sigtramp)(unsigned long addr);
extern void (*flush_icache_all)(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册