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