Skip to content

copy_process/attach_pid minor fix + cleanups

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4de_thread: use change_pid() rather than detach_pid/attach_pidfs/exec.c+1 -21 reply
2/4copy_process: unify CLONE_THREAD-or-thread_group_leader codekernel/fork.c+7 -80 replies
3/4copy_process: don't add the uninitialized child to thread/task/pid listsinclude/linux/pid.h kernel/fork.c kernel/pid.c+19 -150 replies
4/4copy_process: consolidate the lockless CLONE_THREAD checkskernel/fork.c+16 -170 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchEric W. Biederman
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] copy_process/attach_pid minor fix + cleanups

Hello.

1/4 and 2/4 look like the obvious cleanups.

3/4 tries to fix the minor problem. I have to admit, initially I thought that this problem is more serious. But it seems that nothing really bad can happen if the new task has the wrong pid or group_leader. Still I think this makes sense.

4/4 is offtopic minor cleanup.

This is also another preparation for while_each_thread() fixes.

Oleg.