summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-08-22 22:04:42 +0000
committerart <art@openbsd.org>2002-08-22 22:04:42 +0000
commitd84dbf2ea0c3f0ce007c0bb9a7d424a77be7846a (patch)
treea0c02e4e18d4ac434403febc4d6ed3727d385721 /lib/libc
parentsend signal name (not signal number) in "exit-signal" message; noticed (diff)
downloadwireguard-openbsd-d84dbf2ea0c3f0ce007c0bb9a7d424a77be7846a.tar.xz
wireguard-openbsd-d84dbf2ea0c3f0ce007c0bb9a7d424a77be7846a.zip
Change the vnode locking in exec to not keep the vnode locked almost all
the time. This could lead to problems when a process wants to do an exec on the same vnode it's being run from and needs to copy in arguments from an uncached page in the data segment. When that happens uvm detects a vnode deadlock and returns an error causing execve() return EFAULT. This fixes the regress test in regress/sys/kern/exec_self Also, initialize scriptvp early in exec_script because it could be used uninitialized in a failure case.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions