mirror of https://gitee.com/openkylin/linux.git
3f12ebce6a
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> |
||
---|---|---|
.. | ||
Makefile | ||
delay.c | ||
div64.c | ||
qrnnd.S | ||
spinlock.c | ||
string.c | ||
uaccess.h | ||
uaccess_mvcos.c | ||
uaccess_pt.c | ||
uaccess_std.c |