summaryrefslogtreecommitdiff
path: root/lib/libform/form_field_attributes.3
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-09-29 12:47:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-09-29 12:47:35 +0000
commitc16ee4429eea649a45a7b9417e039bfe8e12a40e (patch)
tree7c4ceb62bfa91754108a2236450cc9d92137af4d /lib/libform/form_field_attributes.3
parent4c5ef00d9d44f0099d34f965c9e52148a76b8643 (diff)
Extend single_thread_set() mode with additional flag attributes.
The mode can now be or-ed with SINGLE_DEEP or SINGLE_NOWAIT to alter the behaviour of single_thread_set(). This allows explicit control of the SINGLE_DEEP behaviour. If SINGLE_DEEP is set the deep flag is passed to the initial check call and by that the check will error out instead of suspending (SINGLE_UNWIND) or exiting (SINGLE_EXIT). The SINGLE_DEEP flag is required in calls to single_thread_set() outside of userret. E.g. at the start of sys_execve because the proc is not allowed to call exit1() in that location. SINGLE_NOWAIT skips the wait at the end of single_thread_set() and therefor returns BEFORE all threads have been parked. Currently this is only used by the ptrace code and should not be used anywhere else. Not waiting for all threads to settle is asking for trouble. This solves an issue by using SINGLE_UNWIND in the coredump case where the code should actually exit in case another thread crashed moments earlier. Also the SINGLE_UNWIND in pledge_fail() is now marked SINGLE_DEEP since the call to pledge_fail() is for sure not at the kernel boundary. OK mpi@
Diffstat (limited to 'lib/libform/form_field_attributes.3')
0 files changed, 0 insertions, 0 deletions