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

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