[PATCH v1] net/memif: fix segfault with Tx burst larger than 255

Ferruh Yigit ferruh.yigit at amd.com
Wed Dec 6 20:17:27 CET 2023


On 12/5/2023 6:33 PM, Stephen Hemminger wrote:
> On Tue,  5 Dec 2023 04:05:24 +0000
> Joyce Kong <joyce.kong at arm.com> wrote:
> 
>> There will be a segfault when tx burst size is larger than
>> 256. This is because eth_memif_tx uses an index i which is
>> uint8_t to count transmitted nb_pkts. Extend i to uint16_t,
>> the same size as nb_pkts.
>>
>> Fixes: b5613c8f9d0a ("net/memif: add a Tx fast path")
>> Cc: stable at dpdk.org
>>
>> Reported-by: Liangxing Wang <liangxing.wang at arm.com>
>> Signed-off-by: Joyce Kong <joyce.kong at arm.com>
>> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
>> ---
> 
> I wonder if other drivers have same bug?
> 
> Reviewed-by: Stephen Hemminger <stephen at networkplumber.org>
>

Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>


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


More information about the stable mailing list