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