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

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