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@xxxxxxxx> 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@xxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Davidlohr Bueso <dave@xxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Darren Hart <dvhart@xxxxxxxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Cc: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> Cc: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Greg Ungerer <gerg@xxxxxxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxx are tmpfs-fix-vm_mayshare-mappings-for-nommu.patch futex-fix-shared-futex-operations-on-nommu.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html