[lkml]   [1999]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] Fixed the race that was oopsing Linux-2.2.0
On Wed, 27 Jan 1999, Andrea Arcangeli wrote:

> The other problem that was harming all people is that mmget() was
> incrasing the counter unconditionally. But it could increase it even if it
> was just 0. So we could have an mm with count 1 (increased by /proc), but

Before somebody will notice this: my fix is not the right one (probably
due lack to sleep ;). Incidentally it worked _fine_ because the race is so
fast that the slab cache had not the time to reuse the mm_struct (the one
where I hold the mm_lock even if it's just deallocated) for another task.

I am fixing it right this time. The fix is to make atomic the tsk->mm =
&init_mm and the mmput.

A real fix is coming soon...

Andrea Arcangeli

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [W:0.109 / U:0.440 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site