linux/arch/s390/kernel
Heiko Carstens e858712185 s390/compat: fix mmap compat system calls
The native 31 bit and the compat behaviour for the mmap system calls differ:

In native 31 bit mode the passed in address for the mmap system call will be
unmodified passed to sys_mmap_pgoff().
In compat mode however the passed in address will be modified with
compat_ptr() which masks out the most significant bit.

The result is that in native 31 bit mode each mmap request (with MAP_FIXED)
will fail where the most significat bit is set, while in compat mode it
may succeed.

This odd behaviour was introduced with d3815898 "[S390] mmap: add missing
compat_ptr conversion to both mmap compat syscalls".

To restore a consistent behaviour accross native and compat mode this
patch functionally reverts the above mentioned commit.

Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-08-08 07:32:57 -07:00
..
vdso32
vdso64
.gitignore
asm-offsets.c
audit.c
audit.h
base.S
bitmap.c
compat_audit.c
compat_exec_domain.c
compat_linux.c s390/compat: fix mmap compat system calls 2012-08-08 07:32:57 -07:00
compat_linux.h
compat_ptrace.h
compat_signal.c
compat_wrapper.S s390/compat: fix compat wrappers for process_vm system calls 2012-08-08 07:32:57 -07:00
cpcmd.c
crash_dump.c
crash.c
debug.c
diag.c
dis.c
early.c
ebcdic.c
entry64.S
entry.h
entry.S
ftrace.c
head31.S
head64.S
head_kdump.S
head.S
ipl.c
irq.c
jump_label.c
kprobes.c
lgr.c
machine_kexec.c
Makefile
mcount64.S
mcount.S
mem_detect.c
module.c
nmi.c
os_info.c
perf_cpum_cf.c
perf_event.c
process.c
processor.c
ptrace.c
reipl64.S
reipl.S
relocate_kernel64.S
relocate_kernel.S
s390_ksyms.c
sclp.S
setup.c
signal.c
smp.c
stacktrace.c
suspend.c
swsusp_asm64.S
sys_s390.c
syscalls.S
sysinfo.c
time.c
topology.c
traps.c
vdso.c
vmlinux.lds.S
vtime.c