diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-12-21 04:26:06 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-12-25 07:53:14 +0100 |
commit | 8382fcac1b813ad0a4e68a838fc7ae93fa39eda0 (patch) | |
tree | a484c6a712a7361a07d9514ea86f835b70ad3414 /fs/cifs/cifsproto.h | |
parent | Linux 3.8-rc1 (diff) | |
download | linux-8382fcac1b813ad0a4e68a838fc7ae93fa39eda0.tar.xz linux-8382fcac1b813ad0a4e68a838fc7ae93fa39eda0.zip |
pidns: Outlaw thread creation after unshare(CLONE_NEWPID)
The sequence:
unshare(CLONE_NEWPID)
clone(CLONE_THREAD|CLONE_SIGHAND|CLONE_VM)
Creates a new process in the new pid namespace without setting
pid_ns->child_reaper. After forking this results in a NULL
pointer dereference.
Avoid this and other nonsense scenarios that can show up after
creating a new pid namespace with unshare by adding a new
check in copy_prodcess.
Pointed-out-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
0 files changed, 0 insertions, 0 deletions