3a45975681
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> |
||
---|---|---|
.. | ||
Makefile | ||
apc.c | ||
asm-offsets.c | ||
auxio.c | ||
cpu.c | ||
devices.c | ||
ebus.c | ||
entry.S | ||
errtbls.c | ||
etrap.S | ||
head.S | ||
idprom.c | ||
init_task.c | ||
ioport.c | ||
irq.c | ||
led.c | ||
module.c | ||
muldiv.c | ||
of_device.c | ||
pcic.c | ||
pmc.c | ||
process.c | ||
prom.c | ||
ptrace.c | ||
rtrap.S | ||
sclow.S | ||
semaphore.c | ||
setup.c | ||
signal.c | ||
smp.c | ||
sparc-stub.c | ||
sparc_ksyms.c | ||
sun4c_irq.c | ||
sun4d_irq.c | ||
sun4d_smp.c | ||
sun4m_irq.c | ||
sun4m_smp.c | ||
sun4setup.c | ||
sunos_asm.S | ||
sunos_ioctl.c | ||
sys_solaris.c | ||
sys_sparc.c | ||
sys_sunos.c | ||
systbls.S | ||
tadpole.c | ||
tick14.c | ||
time.c | ||
trampoline.S | ||
traps.c | ||
unaligned.c | ||
vmlinux.lds.S | ||
windows.c | ||
wof.S | ||
wuf.S |