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

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