Re: [PATCH mm RESEND] c/r: prctl: update prctl_set_mm_exe_file()after mm->num_exe_file_vmas removal

From: Cyrill Gorcunov
Date: Tue Apr 10 2012 - 19:00:03 EST


On Sat, Apr 07, 2012 at 11:08:02PM +0400, Konstantin Khlebnikov wrote:
> [ fix for "c-r-prctl-add-ability-to-set-new-mm_struct-exe_file-v2" from mm tree ]
>
> After removing mm->num_exe_file_vmas kernel keeps mm->exe_file until final mmput(),
> it never becomes NULL while task is alive.
>
> We can check for other mapped files in mm instead of checking mm->num_exe_file_vmas,
> and mark mm with flag MMF_EXE_FILE_CHANGED in order to forbid second changing of mm->exe_file.
>
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxx>

Hi Konstantin, really sorry for delay. This should do trick for us.

Reviewed-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/