Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934124AbcJaDx4 (ORCPT ); Sun, 30 Oct 2016 23:53:56 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:40050 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933894AbcJaDxz (ORCPT ); Sun, 30 Oct 2016 23:53:55 -0400 Date: Sun, 30 Oct 2016 23:53:42 -0400 (EDT) Message-Id: <20161030.235342.134481656830778556.davem@davemloft.net> To: mlord@pobox.com Cc: nic_swsd@realtek.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] r8152: Fix broken RX checksums. From: David Miller In-Reply-To: <1f847ae0-4928-01e7-f1e7-3cbc37529961@pobox.com> References: <9fb6be7b-95f3-6e59-c0f4-1d6c3357416d@pobox.com> <20161030.205755.1198665157526465556.davem@davemloft.net> <1f847ae0-4928-01e7-f1e7-3cbc37529961@pobox.com> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 30 Oct 2016 19:54:11 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1293 Lines: 32 From: Mark Lord Date: Sun, 30 Oct 2016 22:07:25 -0400 > On 16-10-30 08:57 PM, David Miller wrote: >> From: Mark Lord >> Date: Sun, 30 Oct 2016 19:28:27 -0400 >> >>> The r8152 driver has been broken since (approx) 3.16.xx >>> when support was added for hardware RX checksums >>> on newer chip versions. Symptoms include random >>> segfaults and silent data corruption over NFS. >>> >>> The hardware checksum logig does not work on the VER_02 >>> dongles I have here when used with a slow embedded system CPU. >>> Google reveals others reporting similar issues on Raspberry Pi. >>> >>> So, disable hardware RX checksum support for VER_02, and fix >>> an obvious coding error for IPV6 checksums in the same function. >>> >>> Because this bug results in silent data corruption, >>> it is a good candidate for back-porting to -stable >= 3.16.xx. >>> >>> Signed-off-by: Mark Lord >> >> Applied and queued up for -stable, thanks. > > Thanks. Now that this is taken care of, I do wonder if perhaps > RX checksums ought to be enabled at all for ANY versions of this chip? You should really start a dialogue with the developer who has been making the most, if not all, of the major changes to this driver over the past few years, Hayes Wang.