public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@us.ibm.com>
To: linux-kernel@vger.kernel.org
Subject: signal race tests
Date: Thu, 8 Sep 2005 18:34:26 -0700	[thread overview]
Message-ID: <20050909013425.GA2798@us.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]

Resurfacing...

I put together some "steamroller" race tests, that race a pair of
operations (e.g., kill() and exit()) against each other, varying
the start times of each operation in an attempt to find any destructive
races between the two operations.  There are but five pairs of operations
coded up thus far, wanted to get thoughts and suggestions.  (Forget
about continuously varying the start time of three operations unless
you are quite a bit more patient than am I -- it already takes several
minutes to run some of the tests.)

I have no idea where to put this, so, for the moment have attached a
bzip2-ed tarball.

This actually does find problems with the RCU'ed signal paths, and am
thinking of solutions, none of which are particularly attractive.
One is to "lock down" tasks that might receive the signal, but this
gets complicated and ugly quickly.  Another is to create a new per-task
lock that must be held when changing the "shape" of the task -- RCU
still protects the task list and the sighand structure, but the race
with (say) reparenting is protected by the new lock.

Thoughts?

							Thanx, Paul

[-- Attachment #2: signaltorture.2005.09.08a.tar.bz2 --]
[-- Type: application/octet-stream, Size: 13140 bytes --]

                 reply	other threads:[~2005-09-09  1:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20050909013425.GA2798@us.ibm.com \
    --to=paulmck@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /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