History

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.

Dmitry V. Levin committed 7 years ago

Commit 028b6e81 parent 964a4ea3 files · +20 −2Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/sched/task.h+1−0
@@ -89,6 +89,7 @@ extern void exit_files(struct task_struct *); · 88 unmodified lines
8989 extern void exit_itimers(struct signal_struct *);
9090
9191 extern long _do_fork(struct kernel_clone_args *kargs);
92+extern bool legacy_clone_args_valid(const struct kernel_clone_args *kargs);
9293 extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *);
9394 struct task_struct *fork_idle(int);
9495 struct mm_struct *copy_init_mm(void);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t