]> sourceware.org Git - glibc.git/commitdiff
hurd: Fix unwinding over interruptible RPC
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 7 Jun 2020 17:51:21 +0000 (17:51 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 7 Jun 2020 23:36:10 +0000 (23:36 +0000)
* sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Set CFA register to
%ecx while %esp is altered.

sysdeps/mach/hurd/i386/intr-msg.h

index 54420fed01bd2e0773855ba549f850d578a3f197..70e6cc6592d78e20a41adb49bd0858648d1be67f 100644 (file)
        "                               movl %6, %%eax\n"                     \
        "                               jmp _hurd_intr_rpc_msg_sp_restored\n" \
        "_hurd_intr_rpc_msg_do:         movl %%esp, %%ecx\n"                  \
+       "                               .cfi_def_cfa_register %%ecx\n"        \
        "                               leal %4, %%esp\n"                     \
        "_hurd_intr_rpc_msg_cx_sp:      movl $-25, %%eax\n"                   \
        "_hurd_intr_rpc_msg_do_trap:    lcall $7, $0 # status in %0\n"        \
        "_hurd_intr_rpc_msg_in_trap:    movl %%ecx, %%esp\n"                  \
+       "                               .cfi_def_cfa_register %%esp\n"        \
        "_hurd_intr_rpc_msg_sp_restored:"                                     \
        : "=a" (err), "+m" (option), "+m" (timeout), "=m" (*intr_port_p)              \
        : "m" ((&msg)[-1]), "m" (*cancel_p), "i" (EINTR)                              \
This page took 0.03969 seconds and 5 git commands to generate.