All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] linux-user: fix use of SIGRTMIN
@ 2020-02-04 17:10 Laurent Vivier
  2020-02-04 17:10 ` [PATCH v2 1/4] linux-user: add missing TARGET_SIGRTMIN for hppa Laurent Vivier
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Laurent Vivier @ 2020-02-04 17:10 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Marlies Ruck, Riku Voipio, Laurent Vivier,
	Aleksandar Markovic, Josh Kunz, Taylor Simpson, Matus Kysel,
	milos.stojanovic

This series fixes the problem of the first real-time signals already
in use by the glibc that are not available for the target glibc.

Instead of reverting the first and last real-time signals we rely on
the value provided by the glibc (SIGRTMIN) to know the first available
signal and we map all the signals from this value to SIGRTMAX on top
of TARGET_SIGRTMIN. So the consequence is we have less available signals
in the target (generally 2) but all seems fine as at least 30 signals are
still available.

This has been tested with Go (golang 1.10.1 linux/arm64, bionic) on x86_64
fedora 31. We can avoid the failure in this case allowing the unsupported
signals when we don't provide the "act" parameters to sigaction, only the
"oldact" one. I have also run the LTP suite with several target and debian
based distros.

v2: tested with golang 1.12.10 linux/arm64, eoan)
    Ignore unsupported signals rather than returning an error
    replace i, j by target_sig, host_sig

Laurent Vivier (4):
  linux-user: add missing TARGET_SIGRTMIN for hppa
  linux-user: cleanup signal.c
  linux-user: fix TARGET_NSIG and _NSIG uses
  linux-user: fix use of SIGRTMIN

 linux-user/hppa/target_signal.h |   1 +
 linux-user/signal.c             | 117 +++++++++++++++++++++++---------
 linux-user/trace-events         |   3 +
 3 files changed, 89 insertions(+), 32 deletions(-)

-- 
2.24.1



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-02-11 17:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 17:10 [PATCH v2 0/4] linux-user: fix use of SIGRTMIN Laurent Vivier
2020-02-04 17:10 ` [PATCH v2 1/4] linux-user: add missing TARGET_SIGRTMIN for hppa Laurent Vivier
2020-02-11 16:38   ` Peter Maydell
2020-02-11 16:55   ` Peter Maydell
2020-02-04 17:10 ` [PATCH v2 2/4] linux-user: cleanup signal.c Laurent Vivier
2020-02-04 17:56   ` Philippe Mathieu-Daudé
2020-02-11 16:39   ` Peter Maydell
2020-02-04 17:10 ` [PATCH v2 3/4] linux-user: fix TARGET_NSIG and _NSIG uses Laurent Vivier
2020-02-11 16:47   ` Peter Maydell
2020-02-11 16:59     ` Laurent Vivier
2020-02-11 17:17       ` Peter Maydell
2020-02-04 17:10 ` [PATCH v2 4/4] linux-user: fix use of SIGRTMIN Laurent Vivier
2020-02-05 22:32   ` Taylor Simpson
2020-02-11 17:05   ` Peter Maydell
2020-02-11 17:19     ` Laurent Vivier
2020-02-11 15:40 ` [PATCH v2 0/4] " Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.