]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[S390] uaccess: Always access the correct address space.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Apr 2008 05:46:27 +0000 (07:46 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Apr 2008 05:47:06 +0000 (07:47 +0200)
commit3f12ebce6a004c8e9bf639801842f67e578ee7c6
treeab498a639b84511e56e2c2051e46c804744a1477
parenta806170e29c5468b1d641a22518243bdf1b8d58b
[S390] uaccess: Always access the correct address space.

The current uaccess page table walk code assumes at a few places that
any access is a user space access. This is not correct if somebody
has issued a set_fs(KERNEL_DS) in advance.
Add code which checks which address space we are in and with this make
sure we access the correct address space. This way we get also rid of
the dirty
if (!currrent-mm)
return -EFAULT;
hack in futex_atomic_cmpxchg_pt.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/lib/uaccess_pt.c