np 3c07b218c4 MFC r297298:
Plug leak in m_unshare.

m_unshare passes on the source mbuf's flags as-is to m_getcl and this
results in a leak if the flags include M_NOFREE.  The fix is to clear
the bits not listed in M_COPYALL before calling m_getcl.  M_RDONLY
should probably be filtered out too but that's outside the scope of this
fix.

Add assertions in the zone_mbuf and zone_pack ctors to catch similar
bugs.

Update netmap_get_mbuf to not pass M_NOFREE to m_getcl.  It's not clear
what the original code was trying to do but it's likely incorrect.
Updated code is no different functionally but it avoids the newly added
assertions.

Sponsored by:	Chelsio Communications
2016-04-01 01:39:44 +00:00
..
2016-03-27 06:17:19 +00:00
2016-01-24 22:17:05 +00:00
2016-03-07 07:54:48 +00:00
2016-01-04 16:51:56 +00:00
2016-03-21 07:36:02 +00:00
2016-03-27 07:34:42 +00:00
2014-12-31 23:25:37 +00:00
2015-11-12 23:49:47 +00:00
2016-04-01 01:39:44 +00:00
2016-03-25 08:26:37 +00:00
2016-01-25 09:29:29 +00:00
2016-03-27 06:17:19 +00:00
2016-04-01 01:39:44 +00:00
2016-01-08 23:58:32 +00:00
2016-01-28 22:34:29 +00:00
2016-03-09 10:19:32 +00:00
2015-05-31 23:29:04 +00:00
2015-12-27 13:37:14 +00:00
2016-02-25 18:46:06 +00:00
2016-03-31 09:55:21 +00:00
2016-03-09 10:01:28 +00:00
2016-03-30 18:45:18 +00:00
2015-12-02 21:48:34 +00:00
2015-12-14 21:21:43 +00:00
2015-01-01 10:44:20 +00:00
2016-01-23 17:08:17 +00:00
2015-12-27 17:12:54 +00:00
2016-01-24 19:21:53 +00:00
2016-01-23 07:35:29 +00:00
2016-01-24 21:04:06 +00:00
2016-03-15 10:45:55 +00:00
2015-09-14 09:12:28 +00:00
2016-03-27 08:00:51 +00:00
2016-01-18 18:27:21 +00:00
2016-01-08 02:52:04 +00:00