Re: [-mm][PATCH 1/2] mm owner fix race between swap and exit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Monday, August 11, 2008 - 5:43 pm

On Mon, Aug 11, 2008 at 5:31 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:

The main thing this fixes is the memrlimit controller, which is only
in -mm. But there's also a dereference of mm->owner in memcontrol.c -
and I think that needs to be fixed to handle a possible NULL mm->owner
too, since in the case of a swapoff racing with the last user of an mm
exiting, I suspect that the swapoff code could try to pull in a page
that gets charged to the mm after its owner has been set to NULL.

Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm][PATCH 0/2] Memory rlimit fix crash on fork, Balbir Singh, (Mon Aug 11, 3:07 am)
Re: [-mm][PATCH 1/2] mm owner fix race between swap and exit, Paul Menage, (Mon Aug 11, 5:43 pm)
Re: [-mm][PATCH 0/2] Memory rlimit fix crash on fork, Andrew Morton, (Tue Aug 12, 5:14 pm)
Re: [-mm][PATCH 0/2] Memory rlimit fix crash on fork, Balbir Singh, (Tue Aug 12, 6:24 pm)
Re: [-mm][PATCH 0/2] Memory rlimit fix crash on fork, Balbir Singh, (Tue Aug 12, 7:07 pm)