Skip to content

user: recursive signal delivery fix and test

Nicholas Piggin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3linux-user: sigaltstack lock_user_struct missing unlocklinux-user/signal.c+14 -131 reply
2/3bsd-user, linux-user: signal: recursive signal delivery fixbsd-user/signal.c linux-user/signal.c+12 -72 replies
3/3tests/tcg: add recursive signal delivery teststests/tcg/multiarch/badsig.c+226 -01 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchWarner LoshPeter Maydell
1/3
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] user: recursive signal delivery fix and test

I found this recursive delivery problem when testing new riscv vector state support patches (plus a minor lock user balance bug).

This or similar type of issue was fixed with 8bd3773cce1 but I couldn't see exactly what scenario that was addressing. Is there any other way a signal can be generated during handle_pending_signal()? The SIGTTIN case, perhaps?

Thanks,
Nick

Nicholas Piggin (3):
linux-user: sigaltstack lock_user_struct missing unlock bsd-user, linux-user: signal: recursive signal delivery fix tests/tcg: add recursive signal delivery tests

 bsd-user/signal.c            |  10 +-
 linux-user/signal.c          |  36 +++---
 tests/tcg/multiarch/badsig.c | 226 +++++++++++++++++++++++++++++++++++
 3 files changed, 252 insertions(+), 20 deletions(-)
 create mode 100644 tests/tcg/multiarch/badsig.c
Signature · 1 line
2.51.0