kern_exec.c (c981cbbd13775bb259623977c23853f3db93c68a) kern_exec.c (6f1fe3305a2be0a1395569b2ea5f56a93e491ae0)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 1993, David Greenman
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

1095 * not disrupted
1096 */
1097 map = &vmspace->vm_map;
1098 if (map_at_zero)
1099 sv_minuser = sv->sv_minuser;
1100 else
1101 sv_minuser = MAX(sv->sv_minuser, PAGE_SIZE);
1102 if (vmspace->vm_refcnt == 1 && vm_map_min(map) == sv_minuser &&
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 1993, David Greenman
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

1095 * not disrupted
1096 */
1097 map = &vmspace->vm_map;
1098 if (map_at_zero)
1099 sv_minuser = sv->sv_minuser;
1100 else
1101 sv_minuser = MAX(sv->sv_minuser, PAGE_SIZE);
1102 if (vmspace->vm_refcnt == 1 && vm_map_min(map) == sv_minuser &&
1103 vm_map_max(map) == sv->sv_maxuser) {
1103 vm_map_max(map) == sv->sv_maxuser &&
1104 cpu_exec_vmspace_reuse(p, map)) {
1104 shmexit(vmspace);
1105 pmap_remove_pages(vmspace_pmap(vmspace));
1106 vm_map_remove(map, vm_map_min(map), vm_map_max(map));
1107 /*
1108 * An exec terminates mlockall(MCL_FUTURE), ASLR state
1109 * must be re-evaluated.
1110 */
1111 vm_map_lock(map);

--- 724 unchanged lines hidden ---
1105 shmexit(vmspace);
1106 pmap_remove_pages(vmspace_pmap(vmspace));
1107 vm_map_remove(map, vm_map_min(map), vm_map_max(map));
1108 /*
1109 * An exec terminates mlockall(MCL_FUTURE), ASLR state
1110 * must be re-evaluated.
1111 */
1112 vm_map_lock(map);

--- 724 unchanged lines hidden ---