* + futex-fix-shared-futex-operations-on-nommu.patch added to -mm tree
@ 2016-04-26 22:27 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-04-26 22:27 UTC (permalink / raw)
To: dalias, bigeasy, dave, dvhart, geert, gerg, kirill.shutemov,
mgorman, mingo, tglx, ysato, mm-commits
The patch titled
Subject: futex: fix shared futex operations on nommu
has been added to the -mm tree. Its filename is
futex-fix-shared-futex-operations-on-nommu.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/futex-fix-shared-futex-operations-on-nommu.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/futex-fix-shared-futex-operations-on-nommu.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Rich Felker <dalias@libc.org>
Subject: futex: fix shared futex operations on nommu
The shared get_futex_key code does not work on nommu, but is not needed
anyway because it's impossible for a given backing to have multiple
distinct virtual addresses on nommu. Simply disable these code paths by
refraining from setting FLAG_SHARED when CONFIG_MMU is not enabled.
Signed-off-by: Rich Felker <dalias@libc.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Darren Hart <dvhart@linux.intel.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/futex.c | 2 ++
1 file changed, 2 insertions(+)
diff -puN kernel/futex.c~futex-fix-shared-futex-operations-on-nommu kernel/futex.c
--- a/kernel/futex.c~futex-fix-shared-futex-operations-on-nommu
+++ a/kernel/futex.c
@@ -3150,8 +3150,10 @@ long do_futex(u32 __user *uaddr, int op,
int cmd = op & FUTEX_CMD_MASK;
unsigned int flags = 0;
+#ifdef CONFIG_MMU
if (!(op & FUTEX_PRIVATE_FLAG))
flags |= FLAGS_SHARED;
+#endif
if (op & FUTEX_CLOCK_REALTIME) {
flags |= FLAGS_CLOCKRT;
_
Patches currently in -mm which might be from dalias@libc.org are
tmpfs-fix-vm_mayshare-mappings-for-nommu.patch
futex-fix-shared-futex-operations-on-nommu.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-26 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 22:27 + futex-fix-shared-futex-operations-on-nommu.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.