aboutsummaryrefslogtreecommitdiff
path: root/include/asm-sparc
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-sparc
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-sparc')
-rw-r--r--include/asm-sparc/mman.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-sparc/mman.h b/include/asm-sparc/mman.h
index 88d1886abf3..b7dc40bc68f 100644
--- a/include/asm-sparc/mman.h
+++ b/include/asm-sparc/mman.h
@@ -35,4 +35,12 @@
#define MADV_FREE 0x5 /* (Solaris) contents can be freed */
+#ifdef __KERNEL__
+#ifndef __ASSEMBLY__
+#define arch_mmap_check sparc_mmap_check
+int sparc_mmap_check(unsigned long addr, unsigned long len,
+ unsigned long flags);
+#endif
+#endif
+
#endif /* __SPARC_MMAN_H__ */