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

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