DPDK vrouter: Incorrect size in sprintf causes memory corruption
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R4.0 |
Fix Committed
|
Undecided
|
Unassigned | |||
Trunk |
Fix Committed
|
Undecided
|
Unassigned | |||
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
We use Contrail 4.0 with DPDK.
contrail-
*** Error in `/usr/bin/
======= Backtrace: =========
/lib/x86_
/lib/x86_
/lib/x86_
/lib/x86_
/usr/bin/
/usr/bin/
/lib/x86_
/usr/bin/
The root cause is in memory corruption, that is done by malloc & sprintf in dpdk/vr_
Size in malloc should be "+ 2" not "+ 1".
summary: |
- DPDK vrouter: Incorrect size in snprintf causes memory corruption + DPDK vrouter: Incorrect size in sprintf causes memory corruption |
Review in progress for https:/ /review. opencontrail. org/34584
Submitter: Sergey Kreys (<email address hidden>)