Files
linux/arch/s390/kernel
Heiko Carstens 44d3398477 s390/compat: fix mmap compat system calls
commit e858712185 upstream.

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.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-08-26 15:12:10 -07:00
..
2011-01-05 12:47:31 +01:00
2010-10-15 15:53:27 +02:00
2011-05-26 09:48:24 +02:00
2011-01-05 12:47:31 +01:00
2011-04-04 09:43:33 +02:00
2011-05-26 09:48:24 +02:00
2011-04-04 13:43:16 -04:00
2011-01-05 12:47:31 +01:00
2010-10-07 14:08:55 +01:00
2012-03-12 10:32:38 -07:00
2012-03-12 10:32:38 -07:00
2011-03-31 11:26:23 -03:00
2010-03-08 16:55:37 +01:00
2011-01-05 12:47:31 +01:00
2011-05-28 10:48:39 -07:00
2011-05-26 09:48:24 +02:00
2011-05-26 09:48:24 +02:00
2011-05-26 09:48:24 +02:00