Blame SOURCES/glibc-rh607461.patch

4999bf
Index: glibc-2.12-2-gc4ccff1/nptl/allocatestack.c
4999bf
===================================================================
4999bf
--- glibc-2.12-2-gc4ccff1.orig/nptl/allocatestack.c
4999bf
+++ glibc-2.12-2-gc4ccff1/nptl/allocatestack.c
4999bf
@@ -994,7 +994,16 @@ setxid_mark_thread (struct xid_command *
4999bf
 
4999bf
       /* If the thread is exiting right now, ignore it.  */
4999bf
       if ((ch & EXITING_BITMASK) != 0)
4999bf
-	return;
4999bf
+	{
4999bf
+	  /* Release the futex if there is no other setxid in
4999bf
+	     progress.  */
4999bf
+	  if ((ch & SETXID_BITMASK) == 0)
4999bf
+	    {
4999bf
+	      t->setxid_futex = 1;
4999bf
+	      lll_futex_wake (&t->setxid_futex, 1, LLL_PRIVATE);
4999bf
+	    }
4999bf
+	  return;
4999bf
+	}
4999bf
     }
4999bf
   while (atomic_compare_and_exchange_bool_acq (&t->cancelhandling,
4999bf
 					       ch | SETXID_BITMASK, ch));