[dpdk-stable] [17.11] examples/bond: fix crash when there is no active slave
Yongseok Koh
yskoh at mellanox.com
Tue Mar 12 23:19:49 CET 2019
> On Mar 12, 2019, at 5:13 AM, Radu Nicolau <radu.nicolau at intel.com> wrote:
>
> [ backported from upstream commit 292fdb76024f ]
>
> If bond_ethdev_rx_burst() called more times with no active slaves
> the active slave index will point out of bounds, resulting in a
> segfault.
> The configured slaves needs to be checked, and if none became active
> there is no point going further.
>
> Do not start the packet processing threads until all configured
> slaves become active.
>
> Fixes: cc7e8ae84faa ("examples/bond: add example application for link bonding mode 6")
>
> Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
> Acked-by: Chas Williams <chas3 at att.com>
> ---
applied to stable/17.11
Thanks,
Yongseok
More information about the stable
mailing list