Messages in this thread | | | Date | Thu, 12 Feb 2009 08:39:32 -0600 | From | "Serge E. Hallyn" <> | Subject | Re: [CRED bug?] 2.6.29-rc3 don't survive on stress workload |
| |
Quoting David Howells (dhowells@redhat.com): > KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote: > > > but perhaps I am merely lucky guy. > > Or perhaps Serge's patch fixes it - as I said I don't have it applied - though > I don't see exactly why it should fix this problem...
I believe it was because
1. put_user_ns() was being called before the uid (which was in the init_user_ns) was unhashed
2. alloc_uid would race in before the unhash, find the hashed uid, and reuse it - without doing another get_user_ns().
so a reference was lost.
-serge
| |