Re: [Qemu-devel] 答复: [PATCH] net: vmxnet: check fragments count at pkt initialisation

2016-08-13 Thread Peter Maydell
On 12 August 2016 at 02:21, 李强 wrote: > Hello Dmitry, > > I don't see the assert for 'max_frags' in vmxnet device emulation. Could you > please point it out? > > In my PoC, I set it to '0x2000', and in vmxnet_tx_pkt_init() the > 'p->raw' will be NULL because of an integer overflow(in x86).

[Qemu-devel] 答复: [PATCH] net: vmxnet: check fragments count at pkt initialisation

2016-08-12 Thread 李强
Hi Dmitry > > > On 12 Aug 2016, at 04:21 AM, 李强 wrote: > > > > Hello Dmitry, > > > > I don't see the assert for 'max_frags' in vmxnet device emulation. Could you > please point it out? > > > Hi, > > I mean that max_frags for vmxnet3 device is a size of TX ring so assert > introduced by this

[Qemu-devel] 答复: [PATCH] net: vmxnet: check fragments count at pkt initialisation

2016-08-12 Thread 李强
Hello Dmitry, I don't see the assert for 'max_frags' in vmxnet device emulation. Could you please point it out? In my PoC, I set it to '0x2000', and in vmxnet_tx_pkt_init() the 'p->raw' will be NULL because of an integer overflow(in x86). And this will bypass all the assert, and in vmxne