Re: [PATCH] - support inheritance of mlocks across fork/exec V2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Saturday, December 6, 2008 - 11:07 pm

(cc linux-abi.  Again.)

On Wed, 03 Dec 2008 14:04:29 -0500 Lee Schermerhorn <Lee.Schermerhorn@hp.com> wrote:


You get paid by the semicolon?


aaaaaaarrrrrrggggggghhhhhhh!

So mm->mcl_inherit is _not_ a boolean meaning "this mm has MCL_INHERIT
set", as I naively believed when I saw it.  Is it in fact a composite
of both MCL_INHERIT and MCL_RECURSIVE, given a badly misleading name
and a waffly comment.

Can we please make this clearer?


hm.  That code looks familiar.  Not worth a helper function?


umm, OK, it looks like current->mm can be null here.


ooh, we finally used local variable def_flags for something.  That's
been wasting space since 2.2.26 (or earlier).


Why is this done in binfmt_elf.c?  Doesn't this preclude the operation
of these new flags for other binary formats?


I was thinking that the boolean mcl_inherit could become a bit in
mm.flags.  That was before I unmisled myself about it.

Perhaps we could use two bits.  That might get a bit nasty.



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

Messages in current thread:
[PATCH] - support inheritance of mlocks across fork/exec V2, Lee Schermerhorn, (Wed Dec 3, 12:04 pm)
Re: [PATCH] - support inheritance of mlocks across fork/ex ..., Andrew Morton, (Sat Dec 6, 11:07 pm)