summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorKirill Korotaev <dev@sw.ru>2006-08-16 12:58:10 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-08-23 14:13:32 -0700
commit8833ebaa3f4325820fe3338ccf6fae04f6669254 (patch)
treecc65b223fbad701405a770636635e3ff30932d6c /include/asm-generic
parent0872a284963a642ba748cbd75842138dd9a3bd00 (diff)
IA64: local DoS with corrupted ELFs
This patch prevents cross-region mappings on IA64 and SPARC which could lead to system crash. davem@ confirmed: "This looks fine to me." :) Signed-Off-By: Pavel Emelianov <xemul@openvz.org> Signed-Off-By: Kirill Korotaev <dev@openvz.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/mman.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-generic/mman.h b/include/asm-generic/mman.h
index 3b41d2bb70da..010ced7cfd61 100644
--- a/include/asm-generic/mman.h
+++ b/include/asm-generic/mman.h
@@ -39,4 +39,10 @@
#define MAP_ANON MAP_ANONYMOUS
#define MAP_FILE 0
+#ifdef __KERNEL__
+#ifndef arch_mmap_check
+#define arch_mmap_check(addr, len, flags) (0)
+#endif
+#endif
+
#endif