Re: [PATCH] linux-user: make process_pending_signals thread-safe

2021-05-27 Thread Hamza Mahfooz
On Thu, May 27 2021 at 11:45:26 AM +0100, Peter Maydell wrote: What issue are we trying to fix by making this change ? I suppose that it wouldn't fix any issues in the current state of affairs, maybe it is something to reconsider if glibc ever changes such that, sigprocmask is no longer MT

Re: [PATCH] linux-user: make process_pending_signals thread-safe

2021-05-27 Thread Peter Maydell
On Thu, 27 May 2021 at 11:37, Hamza Mahfooz wrote: > > > > On Thu, May 27 2021 at 11:16:56 AM +0100, Peter Maydell > wrote: > > If we do want to change from sigprocmask() to pthread_sigmask(), we > > should be consistent about doing that, not just change this call > > only.) > On that note, do yo

Re: [PATCH] linux-user: make process_pending_signals thread-safe

2021-05-27 Thread Peter Maydell
On Mon, 24 May 2021 at 03:48, Hamza Mahfooz wrote: > > Use pthread_sigmask instead of sigprocmask inside process_pending_signals > to ensure that race conditions aren't possible. > > Signed-off-by: Hamza Mahfooz > --- > linux-user/signal.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-

Re: [PATCH] linux-user: make process_pending_signals thread-safe

2021-05-27 Thread Hamza Mahfooz
On Thu, May 27 2021 at 11:16:56 AM +0100, Peter Maydell wrote: If we do want to change from sigprocmask() to pthread_sigmask(), we should be consistent about doing that, not just change this call only.) On that note, do you think it would worthwhile to have a Coccinelle script replace all

[PATCH] linux-user: make process_pending_signals thread-safe

2021-05-23 Thread Hamza Mahfooz
Use pthread_sigmask instead of sigprocmask inside process_pending_signals to ensure that race conditions aren't possible. Signed-off-by: Hamza Mahfooz --- linux-user/signal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 7ee

[PATCH] linux-user: make process_pending_signals thread-safe

2021-04-27 Thread effective-light
Use pthread_sigmask instead of sigprocmask inside process_pending_signals to ensure that race conditions aren't possible. Signed-off-by: Hamza Mahfooz --- linux-user/signal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 7ee