RE: [PATCH net 2/2] r8152: rx descriptor check

From: Hayes Wang
Date: Wed Nov 16 2016 - 22:05:40 EST


Francois Romieu [mailto:romieu@xxxxxxxxxxxxx]
> Sent: Tuesday, November 15, 2016 9:11 AM
[...]
> If it was possible to get it wrong once, it should be possible to
> get it wrong twice, especially if some part of the hardware design
> is recycled. I don't mean anything else.

I agree with you. However, I have to let it could be reproduced
for confirming it.

Besides, the behavior is different for PCIe and USB device. There
is no action of DMA for USB device. It is done by the USB host
controller. And, the USB host controller wouldn't allow the device
sends a data which is more than the size of the buffer.

Best Regards,
Hayes