[dpdk-dev] [PATCH v2 7/7] vhost: do sanity check for desc->next
Yuanhan Liu
yuanhan.liu at linux.intel.com
Mon Mar 7 07:57:04 CET 2016
On Mon, Mar 07, 2016 at 03:10:43AM +0000, Xie, Huawei wrote:
> 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.
Good point. Any elegant solution to avoid that?
--yliu
More information about the dev
mailing list