[lkml]   [2001]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.4.14 + Bug in swap_out.
On 20 Nov 2001, Eric W. Biederman wrote:

> /* Make sure the mm doesn't disappear when we drop the lock.. */
> atomic_inc(&mm->mm_users);
> spin_unlock(&mmlist_lock);
> nr_pages = swap_out_mm(mm, nr_pages, &counter, classzone);
> mmput(mm);
> And looking in fork.c mmput under with right circumstances becomes.
> kmem_cache_free(mm_cachep, (mm)))
> So it appears that there is nothing that keeps the mm_struct that
> swap_mm points to as being valid.

The atomic_inc(&mm->mm_users) above should make sure this
mm_struct stays valid.


Shortwave goes a long way: #swl

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

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