numam-dpdk/lib
Alan Carew f2c4afab58 contigmem: fix buffer overrun on unload
The maximum mount contiguous memory regions for FreeBSD is limited by
RTE_CONTIGMEM_MAX_NUM_BUFS, a pointer to each region is stored in
static void * contigmem_buffers[RTE_CONTIGMEM_MAX_NUM_BUFS]

A user can specify a greater amount via hw.contigmem.num_buffers,
while the allocation logic will prevent this allocation from occuring the logic
in contigmem_unload() will attempt to free hw.contigmem.num_buffers and an
overrun occurs.

This patch limits the freeing to a maximum of RTE_CONTIGMEM_MAX_NUM_BUFS.

Signed-off-by: Alan Carew <alan.carew@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2014-10-20 23:50:35 +02:00
..
librte_acl acl: fix build and runtime for default target 2014-09-03 03:26:50 +02:00
librte_cfgfile eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_cmdline fix unix permissions for source files 2014-08-28 17:04:01 +02:00
librte_distributor mbuf: remove the rte_pktmbuf structure 2014-09-17 11:27:51 +02:00
librte_eal contigmem: fix buffer overrun on unload 2014-10-20 23:50:35 +02:00
librte_ether ethdev: fix memory corruption with default Rx/Tx configuration 2014-10-20 23:50:14 +02:00
librte_hash hash: make tailq fully local 2014-07-22 19:42:23 +02:00
librte_ip_frag mbuf: replace data pointer by an offset 2014-09-17 18:53:40 +02:00
librte_ivshmem eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_kni eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_kvargs kvargs: fix build with gcc 4.5.1 2014-06-17 19:01:59 +02:00
librte_lpm lpm: make tailq fully local 2014-07-22 19:42:23 +02:00
librte_malloc eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_mbuf mbuf: comment for ctrl mbuf flag 2014-10-08 14:45:36 +02:00
librte_mempool mempool: remove useless variable 2014-10-10 17:49:09 +02:00
librte_meter remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_net remove trailing whitespaces 2014-06-11 00:29:34 +02:00
librte_pipeline eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_pmd_bond bond: move param parsing in configure step 2014-09-29 11:56:19 +02:00
librte_pmd_e1000 igb: set default Rx/Tx configuration 2014-10-10 12:54:13 +02:00
librte_pmd_i40e i40e: add Rx error statistics 2014-10-15 14:27:06 +02:00
librte_pmd_ixgbe ixgbe/base: disable some gcc warnings 2014-10-10 17:45:18 +02:00
librte_pmd_pcap pcap: fix double stop error 2014-10-09 20:02:35 +02:00
librte_pmd_ring ring: remove extra devices creation with --vdev option 2014-07-22 16:43:04 +02:00
librte_pmd_virtio virtio: increase max Rx packet length 2014-10-15 16:16:40 +02:00
librte_pmd_vmxnet3 mbuf: replace data pointer by an offset 2014-09-17 18:53:40 +02:00
librte_pmd_xenvirt mbuf: replace data pointer by an offset 2014-09-17 18:53:40 +02:00
librte_port doc: apply one comment to all members of a group 2014-09-29 16:34:58 +02:00
librte_power eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_ring ring: make tailq fully local 2014-07-22 19:42:18 +02:00
librte_sched mbuf: remove the rte_pktmbuf structure 2014-09-17 11:27:51 +02:00
librte_table eal: deprecate rte_snprintf 2014-06-27 02:31:24 +02:00
librte_timer fix unix permissions for source files 2014-08-28 17:04:01 +02:00
librte_vhost vhost: add in doc 2014-10-13 19:39:38 +02:00
Makefile vhost: add makefile 2014-10-13 19:16:54 +02:00