qemu-user doesn't block target signals on entry to signal hanlder.
Public bug reported:
Upon entry to a target signal handler the function process_pending_signals in linux-user/signal.c block the appropriate host signals, but signals already received and queued by Qemu are not blocked. If multiple signals arrive in quick succession this results incorrect recursion in the target signal handler.
The attached test case my be run as:
$ (sleep 2 ; echo) | qemu-i386 ./a.out .................. Recursion in signal handler! qemu: uncaught target signal 6 (Aborted) - core dumped
** Affects: qemu
Importance: Undecided
Status: New
** Attachment added: "Testcase"
https://bugs.launchpad.net/bugs/1429313/+attachment/4336774/+files/sigtest.c
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429313 Title: qemu-user doesn't block target signals on entry to signal hanlder. Status in QEMU: New Bug description: Upon entry to a target signal handler the function process_pending_signals in linux-user/signal.c block the appropriate host signals, but signals already received and queued by Qemu are not blocked. If multiple signals arrive in quick succession this results incorrect recursion in the target signal handler. The attached test case my be run as: $ (sleep 2 ; echo) | qemu-i386 ./a.out .................. Recursion in signal handler! qemu: uncaught target signal 6 (Aborted) - core dumped To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1429313/+subscriptions
** Changed in: qemu
Assignee: (unassigned) => Timothy Baldwin (t-e-baldwin99)
** Changed in: qemu
Status: New => In Progress
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429313 Title: qemu-user doesn't block target signals on entry to signal hanlder. Status in QEMU: In Progress Bug description: Upon entry to a target signal handler the function process_pending_signals in linux-user/signal.c block the appropriate host signals, but signals already received and queued by Qemu are not blocked. If multiple signals arrive in quick succession this results incorrect recursion in the target signal handler. The attached test case my be run as: $ (sleep 2 ; echo) | qemu-i386 ./a.out .................. Recursion in signal handler! qemu: uncaught target signal 6 (Aborted) - core dumped To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1429313/+subscriptions
The patches to block signals on entry to the signal handler have now been applied to master.
** Changed in: qemu
Status: In Progress => Fix Committed
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429313 Title: qemu-user doesn't block target signals on entry to signal hanlder. Status in QEMU: Fix Committed Bug description: Upon entry to a target signal handler the function process_pending_signals in linux-user/signal.c block the appropriate host signals, but signals already received and queued by Qemu are not blocked. If multiple signals arrive in quick succession this results incorrect recursion in the target signal handler. The attached test case my be run as: $ (sleep 2 ; echo) | qemu-i386 ./a.out .................. Recursion in signal handler! qemu: uncaught target signal 6 (Aborted) - core dumped To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1429313/+subscriptions
** Changed in: qemu
Status: Fix Committed => Fix Released
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429313 Title: qemu-user doesn't block target signals on entry to signal hanlder. Status in QEMU: Fix Released Bug description: Upon entry to a target signal handler the function process_pending_signals in linux-user/signal.c block the appropriate host signals, but signals already received and queued by Qemu are not blocked. If multiple signals arrive in quick succession this results incorrect recursion in the target signal handler. The attached test case my be run as: $ (sleep 2 ; echo) | qemu-i386 ./a.out .................. Recursion in signal handler! qemu: uncaught target signal 6 (Aborted) - core dumped To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1429313/+subscriptions