----- Original Message -----
> From: "Richard Weinberger" <rich...@nod.at>
> To: user-mode-linux-devel@lists.sourceforge.net
> Cc: a...@arndb.de, mik...@szeredi.hu, "Richard Weinberger" <rich...@nod.at>, 
> linux-ker...@vger.kernel.org,
> ge...@linux-m68k.org, lf...@altera.com
> Sent: Wednesday, December 10, 2014 1:02:15 PM
> Subject: [uml-devel] [PATCH] 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 <mik...@szeredi.hu>
> Suggested-by: Geert Uytterhoeven <ge...@linux-m68k.org>
> Signed-off-by: Richard Weinberger <rich...@nod.at>
> ---
>  arch/um/Kconfig.common | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common
> index 87bc868..d195a87 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
> --
> 2.1.0
> 
Hi,

tested it a few days, looks good.


Tested-by: Daniel Walter <d.wal...@0x90.at>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to