Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for-linus-2021-01-24' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux

Pull misc fixes from Christian Brauner:

- Jann reported sparse complaints because of a missing __user
annotation in a helper we added way back when we added
pidfd_send_signal() to avoid compat syscall handling. Fix it.

- Yanfei replaces a reference in a comment to the _do_fork() helper I
removed a while ago with a reference to the new kernel_clone()
replacement

- Alexander Guril added a simple coding style fix

* tag 'for-linus-2021-01-24' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
kthread: remove comments about old _do_fork() helper
Kernel: fork.c: Fix coding style: Do not use {} around single-line statements
signal: Add missing __user annotation to copy_siginfo_from_user_any

+6 -7
+1 -1
include/trace/events/sched.h
··· 366 366 ); 367 367 368 368 /* 369 - * Tracepoint for do_fork: 369 + * Tracepoint for kernel_clone: 370 370 */ 371 371 TRACE_EVENT(sched_process_fork, 372 372
+2 -4
kernel/fork.c
··· 819 819 init_task.signal->rlim[RLIMIT_SIGPENDING] = 820 820 init_task.signal->rlim[RLIMIT_NPROC]; 821 821 822 - for (i = 0; i < UCOUNT_COUNTS; i++) { 822 + for (i = 0; i < UCOUNT_COUNTS; i++) 823 823 init_user_ns.ucount_max[i] = max_threads/2; 824 - } 825 824 826 825 #ifdef CONFIG_VMAP_STACK 827 826 cpuhp_setup_state(CPUHP_BP_PREPARE_DYN, "fork:vm_stack_cache", ··· 1653 1654 { 1654 1655 enum pid_type type; 1655 1656 1656 - for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) { 1657 + for (type = PIDTYPE_PID; type < PIDTYPE_MAX; ++type) 1657 1658 INIT_HLIST_NODE(&task->pid_links[type]); 1658 - } 1659 1659 } 1660 1660 1661 1661 static inline void
+1 -1
kernel/kthread.c
··· 294 294 do_exit(ret); 295 295 } 296 296 297 - /* called from do_fork() to get node information for about to be created task */ 297 + /* called from kernel_clone() to get node information for about to be created task */ 298 298 int tsk_fork_get_node(struct task_struct *tsk) 299 299 { 300 300 #ifdef CONFIG_NUMA
+2 -1
kernel/signal.c
··· 3704 3704 return true; 3705 3705 } 3706 3706 3707 - static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo, siginfo_t *info) 3707 + static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo, 3708 + siginfo_t __user *info) 3708 3709 { 3709 3710 #ifdef CONFIG_COMPAT 3710 3711 /*