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
|
|
|
|
|
|
|
|
FileName: 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
|
2018-06-13 19:37:00 +00:00
|
|
|
@@ -12008,6 +12008,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;
|
|
|
|
|
|
|
|
VEC_safe_push (bp_location_p, moribund_locations, old_loc);
|