Re: [PATCH v2 3/4] linux-user: fix TARGET_NSIG and _NSIG uses

2020-02-11 Thread Peter Maydell
On Tue, 11 Feb 2020 at 16:59, Laurent Vivier wrote: > > Le 11/02/2020 à 17:47, Peter Maydell a écrit : > > On Tue, 4 Feb 2020 at 17:11, Laurent Vivier wrote: > >> > >> Valid signal numbers are between 1 (SIGHUP) and SIGRTMAX. > >> > >> System includes define _NSIG to SIGRTMAX + 1, but > >> QEMU (

Re: [PATCH v2 3/4] linux-user: fix TARGET_NSIG and _NSIG uses

2020-02-11 Thread Laurent Vivier
Le 11/02/2020 à 17:47, Peter Maydell a écrit : > On Tue, 4 Feb 2020 at 17:11, Laurent Vivier wrote: >> >> Valid signal numbers are between 1 (SIGHUP) and SIGRTMAX. >> >> System includes define _NSIG to SIGRTMAX + 1, but >> QEMU (like kernel) defines TARGET_NSIG to TARGET_SIGRTMAX. >> >> Fix all th

Re: [PATCH v2 3/4] linux-user: fix TARGET_NSIG and _NSIG uses

2020-02-11 Thread Peter Maydell
On Tue, 4 Feb 2020 at 17:11, Laurent Vivier wrote: > > Valid signal numbers are between 1 (SIGHUP) and SIGRTMAX. > > System includes define _NSIG to SIGRTMAX + 1, but > QEMU (like kernel) defines TARGET_NSIG to TARGET_SIGRTMAX. > > Fix all the checks involving the signal range. > > Signed-off-by:

[PATCH v2 3/4] linux-user: fix TARGET_NSIG and _NSIG uses

2020-02-04 Thread Laurent Vivier
Valid signal numbers are between 1 (SIGHUP) and SIGRTMAX. System includes define _NSIG to SIGRTMAX + 1, but QEMU (like kernel) defines TARGET_NSIG to TARGET_SIGRTMAX. Fix all the checks involving the signal range. Signed-off-by: Laurent Vivier --- Notes: v2: replace i, j by target_sig, hos