Re: [PATCH 0/1] turn mm->exe_file into mm->exe_path

From: Cyrill Gorcunov
Date: Mon Mar 05 2012 - 13:25:24 EST


On Mon, Mar 05, 2012 at 06:33:14PM +0100, Oleg Nesterov wrote:
>
> > Not sure where we may use PR_SET_MM_EXE_PATH with NULL to kill
> > num_exe_file_vmas from user space though
>
> Please see above:
>
> Why do we need mm->num_exe_file_vmas? Afaics it is only needed to
> "free" mm->exe_file if the application unmaps all these vmas. Say,
> to allow to unmount fs.
>
> If we remove this counter, the application can't do the final put.
> But if we add PR_SET_MM_EXE_PATH which accepts NULL we solve this
> problem and this works for c/r too.
>
> Of course, this is orthogonal to the patch I sent.
>

I see. Thanks, Oleg!

Cyrill
--
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/