From: "Will Deacon" <will.deacon@arm.com>
To: Will Deacon <Will.Deacon@arm.com>, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] Fix rt_sigtimedwait ordering test
Date: Wed, 16 Feb 2011 16:43:40 -0000 [thread overview]
Message-ID: <000b01cbcdf8$aaaba430$0002ec90$@deacon@arm.com> (raw)
In-Reply-To: <1297088926-21505-1-git-send-email-will.deacon@arm.com>
Hello,
> The rt_sigtimedwait test invokes test_masked_matching_rt, which
> spawns two children who send consecutive RT signals to the parent.
> The test then checks (via sigwaitinfo) that the RT signals are
> delivered in the correct order: namely that the lower signal is taken
> first.
>
> This test can fail due to a race condition where the parent issues
> the sigwaitinfo syscall before the first child has signalled the
> parent but after the second child has (due to context switching).
> This results in the signals being received in the reverse order.
>
> This patch inserts waitpid syscalls to the parent thread so that the
> sigwaitinfo call is only issued after the children have exited.
>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
> ---
> .../kernel/syscalls/sigwaitinfo/sigwaitinfo01.c | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
I've not heard anything further on this, but it does fix a real issue
on the platform I'm using. Do you need anything more from me for this
to be considered for committing?
Cheers,
Will
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2011-02-16 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-07 14:28 [LTP] [PATCH] Fix rt_sigtimedwait ordering test Will Deacon
2011-02-16 16:43 ` Will Deacon [this message]
[not found] ` <9151393516569896904@unknownmsgid>
2011-02-23 8:02 ` Garrett Cooper
2011-02-25 10:53 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000b01cbcdf8$aaaba430$0002ec90$@deacon@arm.com' \
--to=will.deacon@arm.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox