CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/06/16 13:29:25
Modified files:
sys/kern : kern_synch.c
Log message:
When releasing, read trace index before reference counter decrement.
When btrace(8) is active, refcounting is traced using an index field
to the dt(4) backend. When two CPU simultaneously decrement the
reference count, one could free the object while the other is still
reading the index. Move the load before the dec separated by a
membar. Crashes seen while testing an experimental diff from dlg@.
OK cludwig@