Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2017 12:13:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)
Message-ID:  <bug-213903-8-Iq9hh7u9oX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213903-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213903-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

--- Comment #21 from Franco Fichtner <franco@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213903-8-Iq9hh7u9oX>