NetBSD/src KsiWTcwsys/kern sys_ptrace_common.c

   Enhance locking of ptrace_update_lwp

   Replace lwp_delref() + mutex_enter() with: mutex_enter() + lwp_delref2().
   This avoids extra taking and exiting from a mutex.

   Add missing mutex_exit() for LW_SYSTEM.

   Do not switch lwp for PT_SET_SIGINFO. This operation is not needed and
   avoids panic for >2 LWPs as p_lock is attempted to be entered again in a
   critical section.
VersionDeltaFile
1.58+5-7sys/kern/sys_ptrace_common.c
+5-71 files

UnifiedSplitRaw