From: Richard Weinberger Date: Wed, 10 Dec 2014 12:53:51 +0000 (+0100) Subject: um: Skip futex_atomic_cmpxchg_inatomic() test X-Git-Tag: MMI-PSA29.97-13-9~10872^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f911d731054ab3d82ee72a16b889e17ca3a2332a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git um: Skip futex_atomic_cmpxchg_inatomic() test futex_atomic_cmpxchg_inatomic() does not work on UML because it triggers a copy_from_user() in kernel context. On UML copy_from_user() can only be used if the kernel was called by a real user space process such that UML can use ptrace() to fetch the value. Reported-by: Miklos Szeredi Suggested-by: Geert Uytterhoeven Signed-off-by: Richard Weinberger Tested-by: Daniel Walter --- diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common index 87bc86821bc9..d195a87ca542 100644 --- a/arch/um/Kconfig.common +++ b/arch/um/Kconfig.common @@ -3,6 +3,7 @@ config UML default y select HAVE_ARCH_AUDITSYSCALL select HAVE_UID16 + select HAVE_FUTEX_CMPXCHG if FUTEX select GENERIC_IRQ_SHOW select GENERIC_CPU_DEVICES select GENERIC_IO