]> git.baikalelectronics.ru Git - kernel.git/commit
clone: fix CLONE_PIDFD support
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 14 Jul 2019 16:20:47 +0000 (19:20 +0300)
committerChristian Brauner <christian@brauner.io>
Sun, 14 Jul 2019 18:36:12 +0000 (20:36 +0200)
commit3e5cf2419e6000628b67854028ce2cb4c71b1f95
tree1f7464eb4b1f64d20def0019a2818e8c3e9c2c74
parent903ae44f5c90a74650ffb03388316937b7908334
clone: fix CLONE_PIDFD support

The introduction of clone3 syscall accidentally broke CLONE_PIDFD
support in traditional clone syscall on compat x86 and those
architectures that use do_fork to implement clone syscall.

This bug was found by strace test suite.

Link: https://strace.io/logs/strace/2019-07-12
Fixes: 2857618838c4 ("fork: add clone3")
Bisected-and-tested-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Link: https://lore.kernel.org/r/20190714162047.GB10389@altlinux.org
Signed-off-by: Christian Brauner <christian@brauner.io>
arch/x86/ia32/sys_ia32.c
include/linux/sched/task.h
kernel/fork.c