Re: [PATCH] Fix race between attach_task and cpuset_exit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Jackson
Date: Monday, March 26, 2007 - 10:58 am

vatsa wrote:

I don't see how this could happen.  If we hold the task lock that now
(thanks to your good work) guards this pointer, and if we decrement to
zero the reference count on the cpuset to which it points and then
-overwrite- this last remaining visible pointer to that cpuset with a
pointer to a different cpuset, then aren't we guaranteed to be holding
the last remaining reference to the old cpuset in our local variable,
making it impossible for anyone else to attach to it in any way?

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix race between attach_task and cpuset_exit, Srivatsa Vaddagiri, (Sun Mar 25, 9:47 am)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Balbir Singh, (Sun Mar 25, 10:52 am)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Paul Jackson, (Sun Mar 25, 12:50 pm)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Paul Jackson, (Sun Mar 25, 12:54 pm)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Srivatsa Vaddagiri, (Mon Mar 26, 4:50 am)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Srivatsa Vaddagiri, (Mon Mar 26, 4:55 am)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Paul Jackson, (Mon Mar 26, 10:58 am)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Paul Jackson, (Mon Mar 26, 11:30 am)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Srivatsa Vaddagiri, (Mon Mar 26, 11:35 pm)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Srivatsa Vaddagiri, (Thu Apr 5, 12:00 am)
Re: [PATCH] Fix race between attach_task and cpuset_exit, Srivatsa Vaddagiri, (Thu Apr 5, 1:14 am)
[PATCH] Fix race between attach_task and cpuset_exit, Srivatsa Vaddagiri, (Tue Apr 10, 10:12 am)