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

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