[dpdk-dev] [PATCH v2 7/7] vhost: do sanity check for desc->next

Xie, Huawei huawei.xie at intel.com
Mon Mar 7 04:10:43 CET 2016


On 2/18/2016 9:48 PM, Yuanhan Liu wrote:
> +			if (unlikely(desc->next >= vq->size))
> +				goto fail;

desc chains could be forged into a loop then vhost runs the dead loop
until it exhaust all mbuf memory.



More information about the dev mailing list