Re: + remove-the-likelypid-check-in-copy_process.patch added to -mm tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Saturday, March 17, 2007 - 8:09 am

On 03/17, Eric W. Biederman wrote:

So far this is the only reason to have init_struct_pid. Because the
boot CPU (swapper) forks, right?


Yes, yes, I see. But my (very unclear, sorry) question was: shouldn't we
change INIT_SIGNALS then? /sbin/init inherits ->pgrp == ->_session == 1,
in that case __set_special_pids(1,1) does nothing.


Yes. Note also that the parent doing fork_idle() is not always swapper,
it is just wrong to do attach_pid(PIDTYPE_PGID/PIDTYPE_SID) in this case.
example: arch/x86_64/kernel/smpboot.c:do_boot_cpu()


Yes, I think this change should be dropped for now.


Thanks for your explanations!

Oleg.

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

Messages in current thread:
Re: + remove-the-likelypid-check-in-copy_process.patch add ..., Eric W. Biederman, (Fri Mar 16, 11:27 am)
Re: + remove-the-likelypid-check-in-copy_process.patch add ..., Eric W. Biederman, (Sat Mar 17, 7:04 am)
Re: + remove-the-likelypid-check-in-copy_process.patch add ..., Oleg Nesterov, (Sat Mar 17, 8:09 am)
Re: + remove-the-likelypid-check-in-copy_process.patch add ..., Eric W. Biederman, (Sat Mar 17, 10:01 am)
Re: + remove-the-likelypid-check-in-copy_process.patch add ..., Eric W. Biederman, (Sat Mar 17, 11:54 am)