linux-stable-rt/arch/sparc64/kernel
Kirill Korotaev 3a45975681 [PATCH] IA64,sparc: local DoS with corrupted ELFs
This prevents cross-region mappings on IA64 and SPARC which could lead
to system crash.  They were correctly trapped for normal mmap() calls,
but not for the kernel internal calls generated by executable loading.

This code just moves the architecture-specific cross-region checks into
an arch-specific "arch_mmap_check()" macro, and defines that for the
architectures that needed it (ia64, sparc and sparc64).

Architectures that don't have any special requirements can just ignore
the new cross-region check, since the mmap() code will just notice on
its own when the macro isn't defined.

Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[ Cleaned up to not affect architectures that don't need it ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-08 08:40:46 -07:00
..
Makefile
asm-offsets.c
auxio.c [SPARC64] auxio: Remove asm/{sbus,ebus}.h includes. 2006-06-29 16:37:55 -07:00
binfmt_aout32.c
binfmt_elf32.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
central.c
chmc.c
cpu.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
devices.c [SPARC]: Simplify and correct __cpu_find_by() 2006-07-21 14:18:15 -07:00
dtlb_miss.S
dtlb_prot.S
ebus.c [PATCH] irq-flags: SPARC64: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
entry.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
etrap.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
head.S [SPARC64]: Make sure IRQs are disabled properly during early boot. 2006-07-14 17:00:21 -07:00
idprom.c
init_task.c
iommu_common.c
iommu_common.h
irq.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
isa.c [SPARC64]: of_device layer IRQ resolution 2006-06-29 16:37:38 -07:00
itlb_miss.S
kprobes.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ktlb.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
module.c
of_device.c [SPARC64]: Fix more of_device layer IRQ bugs, and correct PROMREG_MAX. 2006-07-21 14:17:52 -07:00
pci.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pci_common.c [SPARC64]: of_device layer IRQ resolution 2006-06-29 16:37:38 -07:00
pci_impl.h
pci_iommu.c
pci_psycho.c [SPARC64] Fix PSYCHO PCI controler init. 2006-07-14 17:00:30 -07:00
pci_sabre.c [PATCH] irq-flags: SPARC64: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
pci_schizo.c [PATCH] irq-flags: SPARC64: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
pci_sun4v.c [SPARC64]: of_device layer IRQ resolution 2006-06-29 16:37:38 -07:00
pci_sun4v.h
pci_sun4v_asm.S
power.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
process.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
prom.c [SPARC64]: Fix more of_device layer IRQ bugs, and correct PROMREG_MAX. 2006-07-21 14:17:52 -07:00
ptrace.c
rtrap.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sbus.c [PATCH] irq-flags: SPARC64: Use the new IRQF_ constants 2006-07-02 13:58:48 -07:00
semaphore.c
setup.c [PATCH] tty: Remove include of screen_info.h from tty.h 2006-07-10 13:24:16 -07:00
signal.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
signal32.c
smp.c
sparc64_ksyms.c [SPARC]: Kill prom_getname, unused and not implemented properly. 2006-07-21 14:17:55 -07:00
starfire.c [SPARC64]: Kill starfire_cookie from SBUS/PCI. 2006-06-29 16:37:08 -07:00
sun4v_ivec.S
sun4v_tlb_miss.S
sunos_ioctl32.c
sys32.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sys_sparc.c [PATCH] IA64,sparc: local DoS with corrupted ELFs 2006-09-08 08:40:46 -07:00
sys_sparc32.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sys_sunos32.c [PATCH] zoned vm counters: conversion of nr_pagecache to per zone counter 2006-06-30 11:25:34 -07:00
systbls.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
time.c [SPARC64]: Make sure IRQs are disabled properly during early boot. 2006-07-14 17:00:21 -07:00
trampoline.S
traps.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
tsb.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ttable.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
una_asm.S
unaligned.c [SPARC64]: Print symbol name of regs->tpc on kernel unaligned accesses. 2006-06-29 16:38:03 -07:00
us2e_cpufreq.c
us3_cpufreq.c
visemul.c
vmlinux.lds.S
winfixup.S