[dpdk-dev] [dpdk-stable] [PATCH v2] net/bonding: fix buf corruption in merging un-transmitted packets

Ferruh Yigit ferruh.yigit at intel.com
Mon Aug 27 15:12:33 CEST 2018


On 8/20/2018 2:58 PM, Chas Williams wrote:
> On Mon, Aug 20, 2018 at 2:54 AM Jia Yu <jyu at vmware.com> wrote:
> 
>> When bond slave devices cannot transmit all packets in bufs array,
>> tx_burst callback shall merge the un-transmitted packets back to
>> bufs array. Recent merge logic introduced a bug which causes
>> invalid mbuf addresses being written to bufs array.
>> When caller frees the un-transmitted packets, due to invalid addresses,
>> application will crash.
>>
>> The fix is avoid shifting mbufs, and directly write un-transmitted
>> packets back to bufs array.
>>
>> Fixes: 09150784a776 ("net/bonding: burst mode hash calculation")
>> Cc: stable at dpdk.org
>> Signed-off-by: Jia Yu <jyu at vmware.com>
>>
> 
> Acked-by: Chas Williams <chas3 at att.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list