[Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 24 12:13:15 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213903

--- Comment #21 from Franco Fichtner <franco at opnsense.org> ---
This was only supposed to print further debug output, but something in here is
probably responsible for fixing it as it touches the same lines as r301157
that's been known to cause the panic in the first place...

-       else if ((rw)->rw_lock != _tid || !_rw_write_unlock((rw), _tid))\
-               _rw_wunlock_hard((rw), _tid, (file), (line));           \
+       else {                                                          \
+               _v = (rw)->rw_lock;                                     \
+               if (_v != _tid || !_rw_write_unlock_fetch((rw), &_v))   \
+                       _rw_wunlock_hard((rw), _v, _tid, (file), (line));\
+       }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list