fork.c (596cf45cbf6e4fa7bcb0df33e373a7d062b644b5) fork.c (043cf46825c102683b1027762c09c7e2b749e5a3)
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/*

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

2180 * From this point on we must avoid any synchronous user-space
2181 * communication until we take the tasklist-lock. In particular, we do
2182 * not want user-space to be able to predict the process start-time by
2183 * stalling fork(2) after we recorded the start_time but before it is
2184 * visible to the system.
2185 */
2186
2187 p->start_time = ktime_get_ns();
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/*

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

2180 * From this point on we must avoid any synchronous user-space
2181 * communication until we take the tasklist-lock. In particular, we do
2182 * not want user-space to be able to predict the process start-time by
2183 * stalling fork(2) after we recorded the start_time but before it is
2184 * visible to the system.
2185 */
2186
2187 p->start_time = ktime_get_ns();
2188 p->real_start_time = ktime_get_boottime_ns();
2188 p->start_boottime = ktime_get_boottime_ns();
2189
2190 /*
2191 * Make it visible to the rest of the system, but dont wake it up yet.
2192 * Need tasklist lock for parent etc handling!
2193 */
2194 write_lock_irq(&tasklist_lock);
2195
2196 /* CLONE_PARENT re-uses the old parent */

--- 855 unchanged lines hidden ---
2189
2190 /*
2191 * Make it visible to the rest of the system, but dont wake it up yet.
2192 * Need tasklist lock for parent etc handling!
2193 */
2194 write_lock_irq(&tasklist_lock);
2195
2196 /* CLONE_PARENT re-uses the old parent */

--- 855 unchanged lines hidden ---