Linus Torvalds writes: (Summary) That said, can't we separate this out into the copy_mm()
phase only?
phase only?
We have "arch_dup_mmap()" that is called on fork() only, so that could do the LDT copy from the old mm, and the actual init_new_context would just zero it out.
just zero it out.
Then there wouldn't be any odd "check if this is an execve" because the copying would be done in the right place.
the copying would be done in the right place.
Hmm?
Hmm?
Linus
Linus
Linus
phase only?
We have "arch_dup_mmap()" that is called on fork() only, so that could do the LDT copy from the old mm, and the actual init_new_context would just zero it out.
just zero it out.
Then there wouldn't be any odd "check if this is an execve" because the copying would be done in the right place.
the copying would be done in the right place.
Hmm?
Hmm?
Linus
Linus
Linus