Blame SOURCES/gdb-moribund-utrace-workaround.patch

475228
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
475228
From: Fedora GDB patches <invalid@email.com>
475228
Date: Fri, 27 Oct 2017 21:07:50 +0200
475228
Subject: gdb-moribund-utrace-workaround.patch
475228
475228
;; Workaround non-stop moribund locations exploited by kernel utrace (BZ 590623).
475228
;;=push+jan: Currently it is still not fully safe.
475228
475228
https://bugzilla.redhat.com/show_bug.cgi?id=590623
475228
http://sources.redhat.com/bugzilla/show_bug.cgi?id=11593
475228
475228
Bug in FSF GDB exploited by the ptrace-on-utrace interaction.
475228
475228
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
475228
--- a/gdb/breakpoint.c
475228
+++ b/gdb/breakpoint.c
475228
@@ -11929,6 +11929,8 @@ update_global_location_list (enum ugll_insert_mode insert_mode)
475228
 		 traps we can no longer explain.  */
475228
 
475228
 	      old_loc->events_till_retirement = 3 * (thread_count () + 1);
475228
+	      /* Red Hat Bug 590623.  */
475228
+	      old_loc->events_till_retirement *= 10;
475228
 	      old_loc->owner = NULL;
475228
 
475228
 	      moribund_locations.push_back (old_loc);