This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/14546] DWARF unwinder can corrupt probe memory


http://sourceware.org/bugzilla/show_bug.cgi?id=14546

--- Comment #4 from Mark Wielaard <mjw at redhat dot com> 2012-09-05 18:27:22 UTC ---
Testing the following:

diff --git a/runtime/unwind.c b/runtime/unwind.c
index ff36b2b..16ccef3 100644
--- a/runtime/unwind.c
+++ b/runtime/unwind.c
@@ -1272,8 +1272,8 @@ static int unwind_frame(struct unwind_context *context,
        if (!processCFI(cieStart, cieEnd, 0, ptrType, user, state))
                goto err;

-       /* Store initial state for use with DW_CFA_restore... */
-       memcpy(&state->cie_regs, &REG_STATE, sizeof (REG_STATE));
+       /* Store initial state registers for use with DW_CFA_restore... */
+       memcpy(&state->cie_regs, &REG_STATE.regs, sizeof (REG_STATE.regs));

        /* Process Frame Description Entry (FDE) instructions. */
        dbug_unwind (1, "processCFI for FDE\n");

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]