summaryrefslogtreecommitdiff
path: root/include/asm-sparc64
diff options
context:
space:
mode:
authorKirill Korotaev <dev@openvz.org>2006-11-11 01:08:49 +0100
committerAdrian Bunk <bunk@stusta.de>2006-11-11 01:08:49 +0100
commit05c19c4369b40357c726a224fe51a3f5ff21f9bd (patch)
treef10482b32d659dd750853d8db937dbe91be2ed28 /include/asm-sparc64
parent567e0e320d52690b9a442beb146ab59af88824a7 (diff)
ia64/sparc: fix local DoS with corrupted ELFs (CVE-2006-4538)
This patch prevents cross-region mappings on IA64 and SPARC which could lead to system crash. Adrian Bunk: Adapted to 2.6.16. Signed-Off-By: Kirill Korotaev <dev@openvz.org> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r--include/asm-sparc64/mman.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-sparc64/mman.h b/include/asm-sparc64/mman.h
index 6fd878e61435..8cc1860be630 100644
--- a/include/asm-sparc64/mman.h
+++ b/include/asm-sparc64/mman.h
@@ -35,4 +35,12 @@
#define MADV_FREE 0x5 /* (Solaris) contents can be freed */
+#ifdef __KERNEL__
+#ifndef __ASSEMBLY__
+#define arch_mmap_check sparc64_mmap_check
+int sparc64_mmap_check(unsigned long addr, unsigned long len,
+ unsigned long flags);
+#endif
+#endif
+
#endif /* __SPARC64_MMAN_H__ */