Blame SOURCES/glibc-rh607461.patch

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