Re: [Qemu-devel] [PATCH v4 1/2] rtl8139: Fix receive buffer overflow check

2015-09-01 Thread Jason Wang
On 09/01/2015 11:26 PM, Vladislav Yasevich wrote: > rtl8139_do_receive() tries to check for the overflow condition > by making sure that packet_size + 8 does not exceed the > available buffer space. The issue here is that RxBuffAddr, > used to calculate available buffer space, is aligned to a >

[Qemu-devel] [PATCH v4 1/2] rtl8139: Fix receive buffer overflow check

2015-09-01 Thread Vladislav Yasevich
rtl8139_do_receive() tries to check for the overflow condition by making sure that packet_size + 8 does not exceed the available buffer space. The issue here is that RxBuffAddr, used to calculate available buffer space, is aligned to a a 4 byte boundry after every update. So it is possible that e