freebsd-skq/sys
Navdeep Parhar fddd4f6273 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.

Reviewed by:	gnn@
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D5698
2016-03-26 23:39:53 +00:00
..
amd64 Polish wbwd(4) driver and add more supported chips. 2016-03-24 20:52:35 +00:00
arm Only define the platform methods for the Allwinner platforms we are 2016-03-26 17:49:46 +00:00
arm64 arm64: Fixing user space boudary checking in copyinout.S 2016-03-24 13:28:33 +00:00
boot Do not prompt for GELI passphrase is encrypted with keys only 2016-03-26 15:39:48 +00:00
bsm Merge from contrib/openbsm to bring the kernel audit bits up to date with OpenBSM 1.2 alpha 4: 2015-12-20 23:22:04 +00:00
cam Add 4k enabled cam quirks for Samsung SM863 Series SSDs 2016-03-24 14:20:33 +00:00
cddl Unify ignoring EEXIST from zvol_create_minor(). 2016-03-24 10:10:41 +00:00
compat When write(2) on eventfd object fails with the error EAGAIN do not return 2016-03-26 19:16:53 +00:00
conf Adding pci_host_generic unconditionally breaks ARM boards with a PCI(e) interface. 2016-03-22 12:12:01 +00:00
contrib Replace the CloudABI system call table by a machine generated version. 2016-03-24 21:47:15 +00:00
crypto Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
ddb Add td_swinvoltick to track last involuntary context switch 2016-03-25 19:35:29 +00:00
dev Plug leak in m_unshare. 2016-03-26 23:39:53 +00:00
fs Speed up lookups in autofs(5) by using red-black trees instead of linear 2016-03-24 13:34:39 +00:00
gdb
geom Don't assume that bio_cmd is a bit mask. 2016-03-10 06:25:39 +00:00
gnu Update our copy of the Linux dts files to be in sync with Linux 4.5-rc1. We 2016-02-09 16:42:32 +00:00
i386 Polish wbwd(4) driver and add more supported chips. 2016-03-24 20:52:35 +00:00
isa Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
kern Plug leak in m_unshare. 2016-03-26 23:39:53 +00:00
kgssapi kcrypto_aes: Use separate sessions for AES and SHA1 2016-02-02 00:14:51 +00:00
libkern
mips Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
modules [urtwn] migrate urtwn out into sys/dev/urtwn/ . 2016-03-20 03:54:57 +00:00
net Fix compile errors after r297225: 2016-03-24 11:40:10 +00:00
net80211 net80211: fix panic for DWDS vaps 2016-03-26 08:59:56 +00:00
netgraph Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere(). 2016-02-27 03:38:01 +00:00
netinet tcp/lro: Return TCP_LRO_NO_ENTRIES if we are short of LRO entries. 2016-03-25 02:54:13 +00:00
netinet6 FreeBSD previously provided route caching for TCP (and UDP). Re-add 2016-03-24 07:54:56 +00:00
netipsec Fix handling of net.inet.ipsec.dfbit=2 variable. 2016-03-18 09:03:00 +00:00
netnatm
netpfil pf: Improve forwarding detection 2016-03-16 06:42:15 +00:00
netsmb The problem report was for a crash that happened when smbfs was 2015-11-18 23:04:01 +00:00
nfs If the dhcp server provides an interface-mtu option, parse the value and 2016-03-21 14:51:51 +00:00
nfsclient
nfsserver
nlm
ofed Add missing curly brackets in for loop. 2016-03-17 12:30:21 +00:00
opencrypto Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
pc98 Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
powerpc Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
riscv Add support for ddb(4). 2016-03-10 15:51:43 +00:00
rpc Fix incorrect (fortunately bigger) malloc size. 2016-03-19 11:48:06 +00:00
security Busy the mount point which is the owner of the audit vnode, around 2016-01-16 10:06:33 +00:00
sparc64 Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
sys Add td_swinvoltick to track last involuntary context switch 2016-03-25 19:35:29 +00:00
teken
tests Style 9 changes. 2015-11-12 10:31:14 +00:00
tools Fix MFS builds when both MD_ROOT_SIZE and MFS_IMAGE are specified 2016-02-02 07:02:51 +00:00
ufs Fix locking mistake in softdep_waitidle(). The surrounding code 2016-03-23 09:58:51 +00:00
vm Remove UMA_ZONE_REFCNT feature, now unused. 2016-03-01 00:33:32 +00:00
x86 Enable interrupts on the BSP once all PICs are initialized. 2016-03-24 00:24:07 +00:00
xdr
xen xenbus: add a comment with the names of the generated accessors 2016-01-15 14:34:31 +00:00
Makefile Add riscv to the list of architectures for cscope. 2016-02-29 16:39:27 +00:00