numam-dpdk/app/test
Olivier Matz 411c22d4e0 app/test: fix memory corruption in reentrancy autotest
The mempool element size is set to 0, but 4 bytes are written in
my_obj_init():

  uint32_t *objnum = obj;
  memset(obj, 0, mp->elt_size);
  *objnum = i;

Change the MEMPOOL_ELT_SIZE constant to sizeof(uint32_t). This fixes
memory corruptions since we were writing outside of the object
boundaries.

Fixes: 104a92bd02 ("app: add reentrancy tests")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2016-04-11 12:13:16 +02:00
..
autotest_data.py app/test: increase memory for group 2 2016-04-06 12:10:05 +02:00
autotest_runner.py app/test: display command line when starting 2016-03-24 21:12:45 +01:00
autotest_test_funcs.py
autotest.py
commands.c
Makefile mk: fix missing librt dependencies 2016-03-22 20:46:53 +01:00
packet_burst_generator.c mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
packet_burst_generator.h
process.h
test_acl.c acl: remove old API 2015-09-03 19:22:48 +02:00
test_acl.h acl: remove old API 2015-09-03 19:22:48 +02:00
test_alarm.c
test_atomic.c
test_byteorder.c
test_cmdline_cirbuf.c
test_cmdline_etheraddr.c
test_cmdline_ipaddr.c
test_cmdline_lib.c
test_cmdline_num.c
test_cmdline_portlist.c
test_cmdline_string.c
test_cmdline.c
test_cmdline.h
test_common.c
test_cpuflags.c eal/arm: check support of armv8.1 atomics 2016-03-05 19:46:50 +01:00
test_cryptodev_gcm_test_vectors.h aesni_gcm: add driver for AES-GCM crypto operations 2016-03-11 01:01:42 +01:00
test_cryptodev_perf.c mbuf_offload: remove library 2016-03-10 21:08:28 +01:00
test_cryptodev_snow3g_hash_test_vectors.h cryptodev: add bit-wise handling for SNOW 3G 2016-03-11 00:18:01 +01:00
test_cryptodev_snow3g_test_vectors.h cryptodev: add bit-wise handling for SNOW 3G 2016-03-11 00:18:01 +01:00
test_cryptodev.c app/test: fix array overflow warning with gcc 4.5 2016-04-07 19:52:07 +02:00
test_cryptodev.h app/test: add SNOW 3G 2016-03-10 23:05:36 +01:00
test_cycles.c
test_debug.c
test_devargs.c remove unneeded tests for NULL when freeing 2016-01-27 15:34:48 +01:00
test_distributor_perf.c
test_distributor.c
test_eal_flags.c app/test: fix EAL flags check 2016-04-06 12:02:09 +02:00
test_eal_fs.c
test_errno.c
test_func_reentrancy.c app/test: fix memory corruption in reentrancy autotest 2016-04-11 12:13:16 +02:00
test_hash_functions.c app/test: fix CRC hash values 2016-03-01 14:20:13 +01:00
test_hash_perf.c hash: remove deprecated function and macros 2015-09-04 15:56:58 +02:00
test_hash_scaling.c eal: move CPU flag functions out of headers 2016-02-16 08:28:00 +01:00
test_hash.c hash: fix allocation of an existing object 2016-04-06 17:30:48 +02:00
test_interrupts.c
test_ivshmem.c
test_kni.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
test_kvargs.c
test_link_bonding_mode4.c bonding: do not ignore multicast in mode 4 2016-03-16 19:05:47 +01:00
test_link_bonding_rssconf.c app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
test_link_bonding.c remove unneeded tests for NULL when freeing 2016-01-27 15:34:48 +01:00
test_logs.c
test_lpm6_routes.h
test_lpm6.c lpm: fix allocation of an existing object 2016-04-06 17:30:06 +02:00
test_lpm_routes.h
test_lpm.c lpm/x86: move SSE implementation to be architecture agnostic 2016-03-11 15:50:11 +01:00
test_malloc.c
test_mbuf.c mbuf: fix performance with 128-byte cache line 2016-02-11 12:45:35 +01:00
test_memcpy_perf.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
test_memcpy.c
test_memory.c app/test: fix integer overflow in memory unit test 2015-12-07 04:10:15 +01:00
test_mempool_perf.c
test_mempool.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
test_memzone.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
test_meter.c
test_mp_secondary.c lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
test_pci.c remove unneeded tests for NULL when freeing 2016-01-27 15:34:48 +01:00
test_per_lcore.c
test_pmd_perf.c ethdev: use constants for link state 2016-04-01 21:38:34 +02:00
test_pmd_ring_perf.c app/test: add performance test for ring driver 2015-11-03 02:01:58 +01:00
test_pmd_ring.c app/test: fix check for virtual ring device 2016-03-24 21:12:45 +01:00
test_power_acpi_cpufreq.c
test_power_kvm_vm.c config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
test_power.c
test_prefetch.c
test_red.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
test_reorder.c reorder: fix unit test for random starting point 2015-11-12 16:49:00 +01:00
test_ring_perf.c
test_ring.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
test_rwlock.c
test_sched.c app/test: fix sched mempool allocation 2015-08-03 23:44:05 +02:00
test_spinlock.c
test_string_fns.c
test_table_acl.c pipeline: support packet redirection at action handlers 2016-03-10 01:28:29 +01:00
test_table_acl.h app/test: rename acl function to lowercase 2015-12-07 04:10:15 +01:00
test_table_combined.c lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
test_table_combined.h
test_table_pipeline.c pipeline: add new functions for action handlers 2016-03-10 01:29:42 +01:00
test_table_pipeline.h
test_table_ports.c
test_table_ports.h
test_table_tables.c lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
test_table_tables.h
test_table.c app/test: rename acl function to lowercase 2015-12-07 04:10:15 +01:00
test_table.h port: move metadata offset reference at mbuf head 2015-10-19 17:00:36 +02:00
test_tailq.c
test_thash.c
test_timer_perf.c
test_timer_racecond.c timer: add race condition test 2015-08-03 12:43:01 +02:00
test_timer.c timer: fix synchronization in stress test 2015-08-03 12:43:01 +02:00
test_version.c
test_xmmt_ops.h lpm/arm: support NEON 2016-03-11 15:56:07 +01:00
test.c app/test: fix missing brackets 2016-03-31 17:09:23 +02:00
test.h app/test: add cryptodev unit and performance tests 2015-11-25 19:18:04 +01:00
virtual_pmd.c ethdev: rename link speed constants 2016-04-01 21:38:34 +02:00
virtual_pmd.h