Re: [BUG][PATCH] 2.4.* mlockall(MCL_FUTURE) is broken -- child inherits

Bruce Blinn (blinn@MissionCriticalLinux.com)
Tue, 08 Jan 2002 14:18:20 -0800


Andrew Morton wrote:
>
> Dave Anderson wrote:
> >
> > In 2.4.*, mlockall(MCL_FUTURE) is erroneously inherited by child processes
> > across fork() and exec():
>
> The Linux manpage says that it is not inherited across either.
>
> However SUS says that it is not inherited across exec, and
> doesn't mention fork() at all.
> http://www.opengroup.org/onlinepubs/007908799/xsh/mlockall.html
>
> So... Shouldn't we be clearing it in the exec() path?
>

But, the SUS documentation for fork() says that it does not inherit the
memory locks of the parent. It explicitly mentions mlockall().

http://www.opengroup.org/onlinepubs/007908799/xsh/fork.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/