[Qemu-devel] 答复: [PATCH v2] net: ne2000: check ring buffer control registers

2016-02-25 Thread yanghongke
On 02/24/2016 02:11 PM, P J P wrote: > From: Prasad J Pandit > > Ne2000 NIC uses ring buffer of NE2000_MEM_SIZE(49152) bytes to process > network packets. Registers PSTART & PSTOP define ring buffer size & > location. Setting these registers to invalid values could lead to > infinite loop or O

Re: [Qemu-devel] 答复: [PATCH v2] net: ne2000: check ring buffer control registers

2016-02-25 Thread Jason Wang
On 02/24/2016 05:25 PM, yanghongke wrote: > Good day to you! > > After my test, I find that the issue is fixed with this patch. > When receiving packet, ne2000_buffer_full return 1, ne2000_receive > immediately return -1,so it avoid infinite loop or OOB r/w access issues. Thanks for

[Qemu-devel] 答复: [PATCH v2] net: ne2000: check ring buffer control registers

2016-02-24 Thread yanghongke
Good day to you! After my test, I find that the issue is fixed with this patch. When receiving packet, ne2000_buffer_full return 1, ne2000_receive immediately return -1,so it avoid infinite loop or OOB r/w access issues. -邮件原件- 发件人: Jason Wang [mailto:jasow...@redhat.com]