diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-02-08 16:00:26 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-02-27 17:56:35 +0000 |
commit | dbda6ac0897603f6c6dfadbbc37f9882177ec7ac (patch) | |
tree | 9b6c5c602acf4517e620834097f85f5545c9d343 /arch/mips/mm | |
parent | 4b0d3f5c28c631c1aeb1860993572ad8468a4c11 (diff) | |
download | blackbird-op-linux-dbda6ac0897603f6c6dfadbbc37f9882177ec7ac.tar.gz blackbird-op-linux-dbda6ac0897603f6c6dfadbbc37f9882177ec7ac.zip |
MIPS: CVE-2009-0029: Enable syscall wrappers.
Thanks to David Daney helping with debugging and testing.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 98ad0a82c29e..694d51f523d1 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c @@ -13,6 +13,7 @@ #include <linux/linkage.h> #include <linux/module.h> #include <linux/sched.h> +#include <linux/syscalls.h> #include <linux/mm.h> #include <asm/cacheflush.h> @@ -58,8 +59,8 @@ EXPORT_SYMBOL(_dma_cache_wback_inv); * We could optimize the case where the cache argument is not BCACHE but * that seems very atypical use ... */ -asmlinkage int sys_cacheflush(unsigned long addr, - unsigned long bytes, unsigned int cache) +SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes, + unsigned int, cache) { if (bytes == 0) return 0; |