]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
fork: Move and describe why the code examines PIDNS_ADDING
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 13 Jul 2018 20:30:33 +0000 (15:30 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 23 Jul 2018 12:57:12 +0000 (07:57 -0500)
commit4ca1d3ee46130e9b939c02a93e3970dad151fed6
tree7bf6b99caa95de54febc2597e9c2ef3d7bb9f033
parent0729614992c946f6e8ccb9ef260aea1f06993df0
fork: Move and describe why the code examines PIDNS_ADDING

Normally this would be something that would be handled by handling
signals that are sent to a group of processes but in this case the
forking process is not a member of the group being signaled.  Thus
special code is needed to prevent a race with pid namespaces exiting,
and fork adding new processes within them.

Move this test up before the signal restart just in case signals are
also pending.  Fatal conditions should take presedence over restarts.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/fork.c