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, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>