numam-dpdk/lib
Jananee Parthasarathy 984d9e522f table: fix crash in LPM IPv6
Unit test table_autotest results in segmentation fault.
Crash occurs in test_table_lpm_ipv6_combined().

Variable 'nht_pos0' used as array subscript is not initialized
in rte_table_lpm_ipv6_entry_add(). It will not be assigned,
if a rule does not exist.

In such case a junk number or invalid array index might result in
segmentation fault due to array out of bounds when
lpm->nht_users is used with such invalid array index.

Fix is to initialize the variables used for array subscript.

Bugzilla ID: 285
Fixes: d89a5bce1d ("lpm6: extend next hop field")
Cc: stable@dpdk.org

Signed-off-by: Jananee Parthasarathy <jananeex.m.parthasarathy@intel.com>
Tested-by: David Marchand <david.marchand@redhat.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2019-07-04 23:44:58 +02:00
..
librte_acl acl: fix build with some arm64 compiler 2019-06-12 00:07:13 +09:00
librte_bbdev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_bitratestats bitrate: fix unchecked return value 2019-04-23 00:19:06 +02:00
librte_bpf bpf: fix validate for function return value 2019-07-04 10:33:13 +02:00
librte_cfgfile cfgfile: replace strcat with strlcat 2019-04-05 14:48:15 +02:00
librte_cmdline replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
librte_compressdev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_cryptodev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_distributor doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_eal malloc: deprecate unused function to set limit 2019-07-01 18:37:50 +02:00
librte_efd doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_ethdev net: move TCP flags from ethdev header 2019-07-03 12:57:30 +02:00
librte_eventdev eventdev: fix doxygen comment 2019-07-03 06:55:41 +02:00
librte_flow_classify enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_gro net: move TCP flags from ethdev header 2019-07-03 12:57:30 +02:00
librte_gso net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
librte_hash enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_ip_frag enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_ipsec enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_jobstats replace snprintf with strlcpy 2019-04-04 22:46:05 +02:00
librte_kni lib: add reasons for components being disabled 2019-07-02 23:21:05 +02:00
librte_kvargs remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
librte_latencystats doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_lpm doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_mbuf mbuf: clarify outer offsets for non-tunnel packets 2019-07-01 17:15:01 +02:00
librte_member replace snprintf with strlcpy 2019-04-04 22:46:05 +02:00
librte_mempool doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_meter enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_metrics metrics: disallow null as metric name 2018-07-26 20:30:18 +02:00
librte_net net: forbid VLAN insert in shared mbuf 2019-07-04 15:59:14 +02:00
librte_pci pci: fix parsing of address without function number 2018-11-13 17:59:42 +01:00
librte_pdump ipc: handle unsupported IPC in action register 2019-06-05 11:27:36 +02:00
librte_pipeline enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_port net: add rte prefix to IP defines 2019-05-24 13:34:46 +02:00
librte_power lib: add reasons for components being disabled 2019-07-02 23:21:05 +02:00
librte_rawdev rawdev: allow devices to skip extra memory allocation 2019-07-04 09:33:59 +02:00
librte_rcu enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_reorder doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_ring ring: remove unnecessary forward declaration 2019-06-04 13:09:51 +02:00
librte_sched enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_security enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_stack enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_table table: fix crash in LPM IPv6 2019-07-04 23:44:58 +02:00
librte_telemetry telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
librte_timer enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_vhost lib: add reasons for components being disabled 2019-07-02 23:21:05 +02:00
Makefile rcu: add RCU library supporting QSBR mechanism 2019-05-02 01:32:41 +02:00
meson.build build: print list of disabled components 2019-07-02 23:20:26 +02:00