mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fork: Copy the vm_stacktop field into the new vmspace
Fixes: 1811c1e957 ("exec: Reimplement stack address randomization")
Reported by: pho
Reported by: syzbot+0446312a51bc13ead834@syzkaller.appspotmail.com
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5eb81a4b40
commit
46d35d415a
1 changed files with 1 additions and 0 deletions
|
|
@ -4263,6 +4263,7 @@ vmspace_fork(struct vmspace *vm1, vm_ooffset_t *fork_charge)
|
|||
vm2->vm_taddr = vm1->vm_taddr;
|
||||
vm2->vm_daddr = vm1->vm_daddr;
|
||||
vm2->vm_maxsaddr = vm1->vm_maxsaddr;
|
||||
vm2->vm_stacktop = vm1->vm_stacktop;
|
||||
vm_map_lock(old_map);
|
||||
if (old_map->busy)
|
||||
vm_map_wait_busy(old_map);
|
||||
|
|
|
|||
Loading…
Reference in a new issue