diff options
author | 2020-10-15 04:28:42 +0000 | |
---|---|---|
committer | 2020-10-15 04:28:42 +0000 | |
commit | b09414a6f3fa5f696f129939d149d8be67301490 (patch) | |
tree | 629df4556df78bfd241c50ebfc55176fdd192aa2 /lib/libssl/tls13_record_layer.c | |
parent | make three mib[] arrays const, as was done in libc (diff) | |
download | wireguard-openbsd-b09414a6f3fa5f696f129939d149d8be67301490.tar.xz wireguard-openbsd-b09414a6f3fa5f696f129939d149d8be67301490.zip |
_exit(2), execve(2): cancel per-process interval timers safely
During _exit(2) and sometimes during execve(2) we need to cancel any
active per-process interval timers. We don't currently do this in an
MP-safe way. Both syscalls ignore the locking assumptions documented
in proc.h.
The easiest way to make them MP-safe is to use setitimer(), just like
the getitimer(2) and setitimer(2) syscalls do. To make things a bit
cleaner I have added a helper function, cancelitimer(), so the callers
don't need to fuss with an itimerval struct.
While we're here we can remove the splclock/splx dance from execve(2).
It is no longer necessary.
ok deraadt@
Diffstat (limited to 'lib/libssl/tls13_record_layer.c')
0 files changed, 0 insertions, 0 deletions