[dpdk-dev] 答复: [PATCH] net/bnxt: fix a possible stack smashing

2020-04-30 Thread Yuan,Linsi
Sure, I'll add it. Thanks, Yuan Linsi 发件人: Somnath Kotur 发送时间: 2020年4月30日 20:55 收件人: Yuan,Linsi; Lance Richardson 抄送: Ajit Kumar Khaparde; dev 主题: Re: [PATCH] net/bnxt: fix a possible stack smashing +Lance Richardson Thanks for the patch, could you p

[dpdk-dev] [PATCH] net/bnxt: fix a possible stack smashing

2020-04-30 Thread Yuan Linsi
From: yuanlinsi01 We see a stack smashing as a result of defensive code missing. Once the nb_pkts is less than RTE_BNXT_DESCS_PER_LOOP, it will be modified to zero after doing a floor align, and we can not exit the following receiving packets loop. And the buffers will be overwrite, then the stac

[dpdk-dev] [PATCH] net/bnxt: fix a possible stack smashing

2020-05-05 Thread Yuan Linsi
From: yuanlinsi01 We see a stack smashing as a result of defensive code missing. Once the nb_pkts is less than RTE_BNXT_DESCS_PER_LOOP, it will be modified to zero after doing a floor align, and we can not exit the following receiving packets loop. And the buffers will be overwrite, then the stac

[dpdk-dev] 答复: [PATCH] net/bnxt: fix a possible stack smashing

2020-05-05 Thread Yuan,Linsi
Ok, I'll modify it per you suggestion Thanks, Yuan Linsi 发件人: Ajit Khaparde 发送时间: 2020年5月5日 11:42:20 收件人: Ferruh Yigit 抄送: Yuan,Linsi; Somnath Kotur; Lance Richardson; dpdk-dev 主题: Re: [dpdk-dev] [PATCH] net/bnxt: fix a possible stack smashing On Thu, A

[dpdk-dev] [PATCH] net/bnxt: fix a possible stack smashing

2020-05-05 Thread Yuan Linsi
From: Linsi Yuan We see a stack smashing as a result of defensive code missing. Once the nb_pkts is less than RTE_BNXT_DESCS_PER_LOOP, it will be modified to zero after doing a floor align, and we can not exit the following receiving packets loop. And the buffers will be overwrite, then the stack