fork.c (3fbd7ee285b2bbc6eebd15a3c8786d9776a402a8) fork.c (0ff7b2cfbae36ebcd216c6a5ad7f8534eebeaee2)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/kernel/fork.c
4 *
5 * Copyright (C) 1991, 1992 Linus Torvalds
6 */
7
8/*

--- 888 unchanged lines hidden (view full) ---

897 set_task_stack_end_magic(tsk);
898
899#ifdef CONFIG_STACKPROTECTOR
900 tsk->stack_canary = get_random_canary();
901#endif
902 if (orig->cpus_ptr == &orig->cpus_mask)
903 tsk->cpus_ptr = &tsk->cpus_mask;
904
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/kernel/fork.c
4 *
5 * Copyright (C) 1991, 1992 Linus Torvalds
6 */
7
8/*

--- 888 unchanged lines hidden (view full) ---

897 set_task_stack_end_magic(tsk);
898
899#ifdef CONFIG_STACKPROTECTOR
900 tsk->stack_canary = get_random_canary();
901#endif
902 if (orig->cpus_ptr == &orig->cpus_mask)
903 tsk->cpus_ptr = &tsk->cpus_mask;
904
905 /* One for the user space visible state that goes away when reaped. */
906 refcount_set(&tsk->rcu_users, 1);
907 /* One for the rcu users, and one for the scheduler */
908 refcount_set(&tsk->usage, 2);
905 /*
906 * One for the user space visible state that goes away when reaped.
907 * One for the scheduler.
908 */
909 refcount_set(&tsk->rcu_users, 2);
910 /* One for the rcu users */
911 refcount_set(&tsk->usage, 1);
909#ifdef CONFIG_BLK_DEV_IO_TRACE
910 tsk->btrace_seq = 0;
911#endif
912 tsk->splice_pipe = NULL;
913 tsk->task_frag.page = NULL;
914 tsk->wake_q.next = NULL;
915
916 account_kernel_stack(tsk, 1);

--- 2050 unchanged lines hidden ---
912#ifdef CONFIG_BLK_DEV_IO_TRACE
913 tsk->btrace_seq = 0;
914#endif
915 tsk->splice_pipe = NULL;
916 tsk->task_frag.page = NULL;
917 tsk->wake_q.next = NULL;
918
919 account_kernel_stack(tsk, 1);

--- 2050 unchanged lines hidden ---