Make two corrections to the vfork(2) stub:
authorguenther <guenther@openbsd.org>
Thu, 18 May 2023 04:26:06 +0000 (04:26 +0000)
committerguenther <guenther@openbsd.org>
Thu, 18 May 2023 04:26:06 +0000 (04:26 +0000)
commit52024a07ff6fc637d534931a0f4716f43d74542b
tree9431557c8d884c3a31d38a70e60ad202fb9b7847
parent5763838533a58e19b33aacbc442838580ac65c19
Make two corrections to the vfork(2) stub:
 * with IBT, it can't return via an indirect jump as that would
   require the *caller* to have an endbr64
 * to support a potential vmspace-sharing implementation, keep the
   retguard value in an arg register across the underlying syscall

ok kettenis@ deraadt@
lib/libc/arch/amd64/sys/Ovfork.S