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

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