Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix overflow

2017-04-04 Thread Yuanhan Liu
On Wed, Apr 05, 2017 at 02:22:27AM +0200, Thomas Monjalon wrote: > 2017-03-15 16:08, Yuanhan Liu: > > On Tue, Mar 14, 2017 at 10:09:56AM +, Wenfeng Liu wrote: > > > virtio-user limits the qeueue number to 8 but provides no limit > > > check against the queue number input from user. If a bigger

Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix overflow

2017-04-04 Thread Thomas Monjalon
2017-03-15 16:08, Yuanhan Liu: > On Tue, Mar 14, 2017 at 10:09:56AM +, Wenfeng Liu wrote: > > virtio-user limits the qeueue number to 8 but provides no limit > > check against the queue number input from user. If a bigger queue > > number (> 8) is given, there is an overflow issue. Doing a sani

Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix overflow

2017-03-15 Thread Yuanhan Liu
On Tue, Mar 14, 2017 at 10:09:56AM +, Wenfeng Liu wrote: > virtio-user limits the qeueue number to 8 but provides no limit > check against the queue number input from user. If a bigger queue > number (> 8) is given, there is an overflow issue. Doing a sanity > check could avoid it. > > Fixes:

[dpdk-dev] [PATCH v2] net/virtio-user: fix overflow

2017-03-14 Thread Wenfeng Liu
virtio-user limits the qeueue number to 8 but provides no limit check against the queue number input from user. If a bigger queue number (> 8) is given, there is an overflow issue. Doing a sanity check could avoid it. Fixes: 37a7eb2ae816 ("net/virtio-user: add device emulation layer") Cc: sta...@d