mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Bandaid locking change: mark static rule mutex recursive so re-entry when
sending an ICMP packet doesn't cause a panic. A better solution is needed; possibly defering the transmit to a dedicated thread. Observed by: "Aaron Wohl" <freebsd@soith.com>
This commit is contained in:
parent
f34f3a7097
commit
598345da4b
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ struct ip_fw_chain {
|
|||
struct mtx mtx; /* lock guarding rule list */
|
||||
};
|
||||
#define IPFW_LOCK_INIT(_chain) \
|
||||
mtx_init(&(_chain)->mtx, "IPFW static rules", NULL, MTX_DEF)
|
||||
mtx_init(&(_chain)->mtx, "IPFW static rules", NULL, \
|
||||
MTX_DEF | MTX_RECURSE)
|
||||
#define IPFW_LOCK_DESTROY(_chain) mtx_destroy(&(_chain)->mtx)
|
||||
#define IPFW_LOCK(_chain) mtx_lock(&(_chain)->mtx)
|
||||
#define IPFW_UNLOCK(_chain) mtx_unlock(&(_chain)->mtx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue