From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934043AbcKQDFb convert rfc822-to-8bit (ORCPT ); Wed, 16 Nov 2016 22:05:31 -0500 Received: from rtits2.realtek.com ([211.75.126.72]:35692 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752377AbcKQDF3 (ORCPT ); Wed, 16 Nov 2016 22:05:29 -0500 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.56 with qID uAH35ENY005384, This message is accepted by code: ctloc85258 From: Hayes Wang To: Francois Romieu CC: "netdev@vger.kernel.org" , nic_swsd , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "mlord@pobox.com" Subject: RE: [PATCH net 2/2] r8152: rx descriptor check Thread-Topic: [PATCH net 2/2] r8152: rx descriptor check Thread-Index: AQHSO+t5Wscn8cAer0W3mKS4Fv3VhKDTK/2AgATZvTCAALaAAIADx4cw Date: Thu, 17 Nov 2016 03:05:14 +0000 Message-ID: <0835B3720019904CB8F7AA43166CEEB201050063@RTITMBSV03.realtek.com.tw> References: <1394712342-15778-226-Taiwan-albertk@realtek.com> <1394712342-15778-228-Taiwan-albertk@realtek.com> <20161111121311.GA19673@electric-eye.fr.zoreil.com> <0835B3720019904CB8F7AA43166CEEB20104EAF8@RTITMBSV03.realtek.com.tw> <20161115011044.GA13220@electric-eye.fr.zoreil.com> In-Reply-To: <20161115011044.GA13220@electric-eye.fr.zoreil.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.177.128] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Francois Romieu [mailto:romieu@fr.zoreil.com] > 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