From: Daniel Walter <sahne@0x90.at>
To: Richard Weinberger <richard@nod.at>
Cc: arnd@arndb.de, miklos@szeredi.hu, linux-kernel@vger.kernel.org,
geert@linux-m68k.org, lftan@altera.com,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [PATCH] um: Skip futex_atomic_cmpxchg_inatomic() test
Date: Mon, 15 Dec 2014 11:27:36 +0100 (CET) [thread overview]
Message-ID: <1164899144.1350.1418639256356.JavaMail.root@0x90.at> (raw)
In-Reply-To: <1418216535-29295-1-git-send-email-richard@nod.at>
----- Original Message -----
> From: "Richard Weinberger" <richard@nod.at>
> To: user-mode-linux-devel@lists.sourceforge.net
> Cc: arnd@arndb.de, miklos@szeredi.hu, "Richard Weinberger" <richard@nod.at>, linux-kernel@vger.kernel.org,
> geert@linux-m68k.org, lftan@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 <miklos@szeredi.hu>
> Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Richard Weinberger <richard@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.walter@0x90.at>
prev parent reply other threads:[~2014-12-15 10:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-10 13:02 [PATCH] um: Skip futex_atomic_cmpxchg_inatomic() test Richard Weinberger
2014-12-15 10:27 ` Daniel Walter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1164899144.1350.1418639256356.JavaMail.root@0x90.at \
--to=sahne@0x90.at \
--cc=arnd@arndb.de \
--cc=geert@linux-m68k.org \
--cc=lftan@altera.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=richard@nod.at \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox