freebsd-dev/sys/dev/netmap
Vincenzo Maffione 0ab5902e8a netmap: fix memory leak in NETMAP_REQ_PORT_INFO_GET
The netmap_ioctl() function has a reference counting bug in case of
NETMAP_REQ_PORT_INFO_GET command. When `hdr->nr_name[0] == '\0'`,
the function does not decrease the refcount of "nmd", which is
increased by netmap_mem_find(), causing a refcount leak.

Reported by:	Xiyu Yang <sherllyyang00@gmail.com>
Submitted by:	Carl Smith <carl.smith@alliedtelesis.co.nz>
MFC after: 3 days
PR:	254311
2021-03-15 17:39:18 +00:00
..
if_ptnet.c Use NET_TASK_INIT() and NET_GROUPTASK_INIT() for drivers that process 2020-02-11 18:57:07 +00:00
if_re_netmap.h
if_vtnet_netmap.h netmap: vtnet: fix RX initialization after netmap_reset() 2021-01-11 21:38:32 +00:00
netmap_bdg.c netmap: simplify parameter passing 2021-01-24 21:59:02 +00:00
netmap_bdg.h
netmap_freebsd.c Make page busy state deterministic on free. Pages must be xbusy when 2019-12-22 06:56:44 +00:00
netmap_generic.c netmap: enter NET_EPOCH on generic txsync 2019-10-28 19:00:27 +00:00
netmap_kern.h netmap: simplify parameter passing 2021-01-24 21:59:02 +00:00
netmap_kloop.c netmap: import changes from upstream (SHA 137f537eae513) 2019-09-01 14:47:41 +00:00
netmap_legacy.c netmap: fix parsing of legacy nmr->nr_ringid 2020-08-18 08:03:28 +00:00
netmap_mbq.c
netmap_mbq.h
netmap_mem2.c netmap: fix mutex double unlock bug 2020-10-22 20:21:11 +00:00
netmap_mem2.h
netmap_monitor.c netmap: simplify parameter passing 2021-01-24 21:59:02 +00:00
netmap_null.c
netmap_offloadings.c
netmap_pipe.c
netmap_vale.c netmap: vale: fix disabled logs 2020-06-03 05:49:19 +00:00
netmap.c netmap: fix memory leak in NETMAP_REQ_PORT_INFO_GET 2021-03-15 17:39:18 +00:00