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

2020-02-03 Thread Taylor Simpson
Taylor > Simpson ; Riku Voipio > Subject: [PATCH 3/4] linux-user: fix TARGET_NSIG and _NSIG uses > > 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. >

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

2020-02-01 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 --- linux-user/signal.c | 51 +